Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 6dc4d7d

Browse files
committed
more twine moves and cleanup of setup
1 parent 145d51e commit 6dc4d7d

2 files changed

Lines changed: 14 additions & 22 deletions

File tree

Makefile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11

22
PYTHON = python
3-
PANDOC = pandoc
3+
# PANDOC = pandoc
44
PYLINT = pylint
5+
TWINE = twine
56

6-
#EMAIL = "martin@cloudflare.com"
77
EMAIL = "mahtin@mahtin.com"
88
NAME = "cloudflare"
99

10-
all: README.rst CHANGELOG.md build
10+
#all: README.rst CHANGELOG.md build
11+
all: CHANGELOG.md build
1112

12-
README.rst: README.md
13-
$(PANDOC) --wrap=none --from=markdown --to=rst < README.md > README.rst
13+
# README.rst: README.md
14+
# $(PANDOC) --wrap=none --from=markdown --to=rst < README.md > README.rst
1415

1516
CHANGELOG.md: FORCE
1617
@ tmp=/tmp/_$$$$.md ; \
@@ -42,18 +43,21 @@ sdist: all
4243
make clean
4344
make test
4445
$(PYTHON) setup.py -q sdist
46+
$(TWINE) check dist/*
4547
@rm -rf ${NAME}.egg-info
4648

4749
bdist: all
4850
make clean
4951
make test
5052
$(PYTHON) setup.py -q bdist
53+
$(TWINE) check dist/*
5154
@rm -rf ${NAME}.egg-info
5255

5356
bdist_wheel: all
5457
make clean
5558
make test
5659
$(PYTHON) setup.py -q bdist_wheel
60+
$(TWINE) check dist/*
5761
@rm -rf ${NAME}.egg-info
5862

5963
upload: clean all tag upload-github upload-pypi
@@ -64,7 +68,7 @@ upload-github:
6468

6569
upload-pypi:
6670
## $(PYTHON) setup.py -q sdist bdist_wheel upload # --sign --identity="$(EMAIL)"
67-
twine upload -r pypi dist/*
71+
$(TWINE) upload -r pypi dist/*
6872

6973
showtag: sdist
7074
@ v=`ls -r dist | head -1 | sed -e 's/cloudflare-\([0-9.]*\)\.tar.*/\1/'` ; echo "\tDIST VERSION =" $$v ; (git tag | fgrep -q "$$v") && echo "\tGIT TAG EXISTS"

setup.py

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
def main():
1010
"""Cloudflare API code - setup.py file"""
1111

12-
with open('README.rst') as read_me:
12+
with open('README.md') as read_me:
1313
long_description = read_me.read()
1414

1515
with open('CloudFlare/__init__.py', 'r') as f:
@@ -20,17 +20,13 @@ def main():
2020
version=version,
2121
description='Python wrapper for the Cloudflare v4 API',
2222
long_description=long_description,
23+
long_description_content_type='text/markdown',
2324
author='Martin J. Levy',
24-
author_email='martin@cloudflare.com',
25-
# maintainer='Martin J. Levy',
26-
# maintainer_email='martin@cloudflare.com',
25+
author_email='mahtin@mahtin.com',
2726
url='https://github.com/cloudflare/python-cloudflare',
2827
license='MIT',
2928
options={"bdist_wheel": {"universal": True}},
3029
packages=['cli4', 'examples']+find_packages(),
31-
#package_dir={'CloudFlare': 'lib'}
32-
#package_dir={'CloudFlare/examples': 'examples'},
33-
#package_data={'cloudflare-examples': ["examples/*"]},
3430
include_package_data=True,
3531
data_files = [('share/man/man1', ['cli4/cli4.1'])],
3632
install_requires=['requests', 'pyyaml', 'jsonlines', 'beautifulsoup4'],
@@ -45,17 +41,9 @@ def main():
4541
'Intended Audience :: Developers',
4642
'Topic :: Software Development :: Libraries :: Python Modules',
4743
'License :: OSI Approved :: MIT License',
48-
'Programming Language :: Python :: 3',
49-
'Programming Language :: Python :: 3.2',
50-
'Programming Language :: Python :: 3.3',
51-
'Programming Language :: Python :: 3.4',
52-
'Programming Language :: Python :: 3.5',
53-
'Programming Language :: Python :: 3.6',
54-
'Programming Language :: Python :: 3.7',
55-
'Programming Language :: Python :: 3.8'
44+
'Programming Language :: Python :: 3'
5645
]
5746
)
5847

59-
6048
if __name__ == '__main__':
6149
main()

0 commit comments

Comments
 (0)