Skip to content

Commit

Permalink
Merge pull request #224 from nbraud/setup.py/setup.cfg
Browse files Browse the repository at this point in the history
setup.py: Move all configuration to setup.cfg
  • Loading branch information
pathunstrom authored Apr 2, 2019
2 parents 1cde076 + 09998e9 commit 5c230df
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 26 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
# Minimum requirements for the build system to execute.
requires = ["setuptools", "wheel"] # PEP 508 specifications.
33 changes: 33 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,35 @@
[aliases]
test = pytest

[metadata]
name = ppb
version = 0.5.0
author = Piper Thunstrom
author_email = pathunstrom@gmail.com
description = An Event Driven Python Game Engine
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/ppb/pursuedpybear
license = Artistic-2.0
classifiers =
Development Status :: 4 - Beta
Intended Audience :: Education
Intended Audience :: Developers
License :: OSI Approved :: Artistic License
Natural Language :: English
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Topic :: Games/Entertainment
Topic :: Software Development :: Libraries
Operating System :: OS Independent

[options]
packages =
ppb
ppb.systems

setup_requires =
pytest-runner

python_requires = >= 3.6
30 changes: 4 additions & 26 deletions setup.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#!/usr/bin/env python3
from setuptools import setup


def readme():
with open('README.md') as file:
return file.read()

def requirements(section=None):
"""Helper for loading dependencies from requirements files."""
if section is None:
filename = "requirements.txt"
else:
Expand All @@ -14,29 +12,9 @@ def requirements(section=None):
with open(filename) as file:
return [line.strip() for line in file]


# See setup.cfg for the actual configuration.
setup(
name='ppb',
version='0.5.0',
packages=['ppb', 'ppb.systems'],
install_requires=requirements(),
setup_requires=['pytest-runner'],
tests_require=requirements('tests'),
python_requires=">=3.6",
url='https://github.com/ppb/pursuedpybear',
license='Artistic-2.0',
author='Piper Thunstrom',
author_email='pathunstrom@gmail.com',
description='An Event Driven Python Game Engine',
long_description=readme(),
long_description_content_type="text/markdown",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Education",
"Intended Audience :: Developers",
"License :: OSI Approved :: Artistic License",
"Natural Language :: English",
"Programming Language :: Python :: 3.7",
"Topic :: Games/Entertainment",
"Topic :: Software Development :: Libraries",
]
)

0 comments on commit 5c230df

Please sign in to comment.