Skip to content

Commit

Permalink
Migrate from setup.py to setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Aug 18, 2022
1 parent fe175b8 commit 8bf5e47
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 78 deletions.
58 changes: 58 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[metadata]
name = django-survey-and-report
version = 1.4.1
description = A django survey app, based on and compatible with "django-survey". You will be able to migrate your data from an ancient version of django-survey, but it has been ported to python 3 and you can export results as CSV or PDF using your native language.
long_description = file: README.md
long_description_content_type = text/markdown
author = Pierre SASSOULAS
author_email = [email protected]
license = AGPL-3.0
url = https://github.com/Pierre-Sassoulas/django-survey
classifiers =
Development Status :: 5 - Production/Stable
Natural Language :: English
Natural Language :: Russian
Natural Language :: Spanish
Natural Language :: French
Natural Language :: Japanese
Natural Language :: Dutch
Natural Language :: Chinese (Traditional)
Natural Language :: German
Natural Language :: Indonesian
Natural Language :: Portuguese
Natural Language :: Polish
Topic :: Utilities
Environment :: Web Environment
Intended Audience :: Developers
License :: OSI Approved :: GNU Affero General Public License v3
Operating System :: OS Independent
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Framework :: Django

[options]
packages = find:
include_package_data = True
install_requires =
django>=2.2,<4.1
django-bootstrap-form>=3.4
django-tastypie>=0.14.2
django-registration>=3.0
pytz>=2018.9
ordereddict>=1.1
pyyaml>=4.2b1

[options.extras_require]
dev =
pySankeyBeta~=1.3.0
django-rosetta
coverage
python-coveralls
coveralls
colorama
pylint
flake8
pre-commit
sankey = pySankeyBeta~=1.3.0
80 changes: 2 additions & 78 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,79 +1,3 @@
import sys
from os import path
from setuptools import setup

import setuptools

if sys.version_info < (3, 6):
sys.exit("Sorry, Python < 3.6 is not supported")

DESCRIPTION = (
"A django survey app, based on and compatible with "
'"django-survey". You will be able to migrate your data from an ancient '
"version of django-survey, but it has been ported to python 3 and you can "
"export results as CSV or PDF using your native language."
)

THIS_DIRECTORY = path.abspath(path.dirname(__file__))
with open(path.join(THIS_DIRECTORY, "README.md"), encoding="utf-8") as f:
LONG_DESCRIPTION = f.read()

DEPENDENCIES = [
"django>=2.2,<4.1",
"django-bootstrap-form>=3.4",
"django-tastypie>=0.14.2",
"django-registration>=3.0",
"pytz>=2018.9",
"ordereddict>=1.1",
"pyyaml>=4.2b1",
]
SANKEY_DEPENDENCIES = ["pySankeyBeta~=1.3.0"]
DEV_DEPENDENCIES = [
"django-rosetta",
"coverage",
"python-coveralls",
"coveralls",
"colorama",
"pylint",
"flake8",
"pre-commit",
]

setuptools.setup(
name="django-survey-and-report",
version="1.4.0",
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
author="Pierre SASSOULAS",
author_email="[email protected]",
license="AGPL-3.0",
url="https://github.com/Pierre-Sassoulas/django-survey",
packages=setuptools.find_packages(),
include_package_data=True,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Natural Language :: English",
"Natural Language :: Russian",
"Natural Language :: Spanish",
"Natural Language :: French",
"Natural Language :: Japanese",
"Natural Language :: Dutch",
"Natural Language :: Chinese (Traditional)",
"Natural Language :: German",
"Natural Language :: Indonesian",
"Natural Language :: Portuguese",
"Natural Language :: Polish",
"Topic :: Utilities",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Framework :: Django",
],
install_requires=DEPENDENCIES,
extras_require={"dev": SANKEY_DEPENDENCIES + DEV_DEPENDENCIES, "sankey": SANKEY_DEPENDENCIES},
)
setup()

0 comments on commit 8bf5e47

Please sign in to comment.