Skip to content

Moved the metadata out of setup.py into setup.cfg. #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = ["setuptools>=44", "wheel", "read_version"]
build-backend = "setuptools.build_meta"

[tool.read_version]
version = "wordsegment.__init__:__version__"
28 changes: 28 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[metadata]
name = wordsegment
author = Grant Jenks
author_email = [email protected]
license = Apache 2.0
description = English word segmentation.
url = http://www.grantjenks.com/docs/wordsegment/
long_description = file: README.rst
classifiers =
Development Status :: 4 - Beta
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Natural Language :: English
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
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

[options]
include_package_data = True
tests_require = tox
packages = wordsegment
32 changes: 0 additions & 32 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
from setuptools.command.test import test as TestCommand
import sys

import wordsegment

class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
Expand All @@ -15,36 +13,6 @@ def run_tests(self):
errno = tox.cmdline(self.test_args)
sys.exit(errno)

with io.open('README.rst', encoding='UTF-8') as reader:
readme = reader.read()

setup(
name='wordsegment',
version=wordsegment.__version__,
description='English word segmentation.',
long_description=readme,
author='Grant Jenks',
author_email='[email protected]',
url='http://www.grantjenks.com/docs/wordsegment/',
packages=['wordsegment'],
include_package_data=True,
tests_require=['tox'],
cmdclass={'test': Tox},
license='Apache 2.0',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'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',
],
)