diff --git a/.travis.yml b/.travis.yml index 1b3cdcc..a485944 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,4 +12,4 @@ install: script: # need to add coverage support - - pytest -vv xeger/tests + - pytest -vv tests diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..dbde32b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,46 @@ +[build-system] +requires = ["setuptools>=61.2", "wheel", "setuptools_scm[toml]>=3.4.3"] +build-backend = "setuptools.build_meta" + +[project] +name = "xeger" +authors = [{name = "Colm O'Connor", email = "colm.oconnor.github@gmail.com"}] +license = {text = "BSD"} +description = "A library for generating random strings from a valid regular expression." +keywords = [ + "regular", + "expressions", + "regexp", + "testing", + "random", + "generator", +] +readme = "README.rst" +classifiers = [ + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Topic :: Software Development :: Build Tools", + "Programming Language :: Python :: 2", + "Programming Language :: Python :: 2.6", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.1", + "Programming Language :: Python :: 3.2", + "Programming Language :: Python :: 3.3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", +] +urls = {Homepage = "https://github.com/crdoconnor/xeger"} +dynamic = ["version"] + +[tool.setuptools] +zip-safe = false +include-package-data = false + +[tool.setuptools.packages.find] +exclude = ["docs"] # tests* +namespaces = false + +[tool.setuptools_scm] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 700c19b..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[easy_install] - diff --git a/setup.py b/setup.py deleted file mode 100644 index f040d41..0000000 --- a/setup.py +++ /dev/null @@ -1,40 +0,0 @@ -import os, sys, re, codecs -from setuptools import setup, find_packages - -def read(*parts): - # intentionally *not* adding an encoding option to open - # see here: https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690 - return codecs.open(os.path.join(os.path.abspath(os.path.dirname(__file__)), *parts), 'r').read() - -long_description = read('README.rst') - -setup(name="xeger", - version="0.3.4", - url="https://github.com/crdoconnor/xeger", - description="A library for generating random strings from a valid regular expression.", - long_description=long_description, - classifiers=[ - 'Development Status :: 3 - Alpha', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: MIT License', - 'Topic :: Software Development :: Build Tools', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.6', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.1', - 'Programming Language :: Python :: 3.2', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - ], - keywords='regular expressions regexp testing random generator', - author='Colm O\'Connor', - author_email='colm.oconnor.github@gmail.com', - license='BSD', - install_requires=[], - packages=find_packages(exclude=["docs", "tests*"]), - zip_safe=False, - test_suite='xeger.tests.suite', -) diff --git a/xeger/tests/__init__.py b/tests/__init__.py similarity index 100% rename from xeger/tests/__init__.py rename to tests/__init__.py diff --git a/xeger/tests/test_xeger.py b/tests/test_xeger.py similarity index 100% rename from xeger/tests/test_xeger.py rename to tests/test_xeger.py