-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Makefile: - - Added sdist-test command - requirements: - - Added pyOpenSSL (needed for twine) - - Added readme_renderer[md] (needed for twine check) - - Added wheel (needed for source distribution) - setup.py: - - Removed 'publish' logic - - Added reading of requirements.txt logic - - Info available in the pokepy package is read directly from it instead of typed manually (version, license, author, author_email) - - Added project_urls - - Added tests_require
- Loading branch information
Showing
4 changed files
with
31 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
-r requirements-dev27.txt | ||
pylint==2.1.* # style | ||
twine==1.12.* # pypi tools | ||
pylint==2.1.* # style | ||
twine==1.12.* # pypi tools | ||
pyOpenSSL==19.0.* # twine dependency | ||
readme_renderer[md]==24.* # command 'twine check' | ||
wheel==0.32.* # command 'setup.py sdist bdist_wheel' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
beckett==0.8.* # main functionality | ||
fcache==0.4.* # disk-based cache | ||
requests==2.20.* # used by beckett (bumped to avoid CVE-2018-18074) | ||
beckett==0.8.* # main functionality | ||
fcache==0.4.* # disk-based cache | ||
requests==2.20.* # used by beckett (bumped to avoid CVE-2018-18074) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,36 @@ | ||
#!/usr/bin/env python | ||
# coding: utf-8 | ||
|
||
import os | ||
import sys | ||
import pokepy | ||
|
||
|
||
try: | ||
from setuptools import setup | ||
except ImportError: | ||
from distutils.core import setup | ||
|
||
if sys.argv[-1] == 'publish': | ||
os.system('python setup.py sdist upload') | ||
sys.exit() | ||
|
||
with open('README.md') as readme_md, open('docs/history.md') as history_md: | ||
with open('README.md') as readme_md, open('docs/history.md') as history_md,\ | ||
open('requirements.txt') as requirements_txt: | ||
readme = readme_md.read() | ||
history = history_md.read() | ||
requirements = [req[:req.find('#')].rstrip() for req in requirements_txt.readlines()] | ||
|
||
setup( | ||
name='pokepy', | ||
version='0.5.0', | ||
description='A Python wrapper for PokéAPI', | ||
version=pokepy.__version__, | ||
description='A Python wrapper for PokéAPI (https://pokeapi.co)', | ||
long_description=readme + '\n\n' + history, | ||
author='Paul Hallett', | ||
author_email='[email protected]', | ||
license=pokepy.__license__, | ||
author=pokepy.__author__, | ||
author_email=pokepy.__email__, | ||
url='https://github.com/PokeAPI/pokepy', | ||
packages=[ | ||
'pokepy', | ||
], | ||
project_urls={'Documentation': 'https://pokeapi.github.io/pokepy/'}, | ||
packages=['pokepy'], | ||
package_dir={'pokepy': 'pokepy'}, | ||
include_package_data=True, | ||
install_requires=["beckett==0.8.0", "fcache==0.4.7", "requests==2.20.0"], | ||
license="BSD", | ||
install_requires=requirements, | ||
zip_safe=False, | ||
keywords='pokepy', | ||
keywords='pokepy PokéAPI', | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Developers', | ||
|
@@ -47,4 +43,5 @@ | |
'Programming Language :: Python :: 3.7', | ||
], | ||
test_suite='tests', | ||
tests_require=['requests-mock==1.5.*'], | ||
) |