Skip to content
Closed
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
53 changes: 53 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,56 @@
[metadata]
name = codespell
version = attr: codespell_lib.__version__
maintainer = Lucas De Marchi
maintainer_email = lucas.de.marchi@gmail.com
license = GPL v2
description = Codespell
url = https://github.com/codespell-project/codespell/
download_url = https://github.com/codespell-project/codespell/
long_description = file: README.rst
long_description_content_type = text/x-rst
classifiers =
Intended Audience :: Developers
License :: OSI Approved
Programming Language :: Python
Topic :: Software Development
Operating System :: Microsoft :: Windows
Operating System :: POSIX
Operating System :: Unix
Operating System :: MacOS
platforms = any

[options]
packages =
codespell_lib
codespell_lib.tests
codespell_lib.data
zip_safe = False
include_package_data = True
python_requires = >=3.7

[options.entry_points]
console_scripts = codespell = codespell_lib:_script_main

# TODO: toml will need to be updated when 3.11 comes out as it's a
# CPython module there

[options.extras_require]
dev =
check-manifest
flake8
pytest
pytest-cov
pytest-dependency
tomli
hard-encoding-detection = chardet
toml = tomli

[options.package_data]
codespell_lib =
data/dictionary*.txt
data/linux-kernel.exclude

[tool:pytest]
addopts = --cov=codespell_lib -rs --cov-report= --tb=short

Expand Down
63 changes: 3 additions & 60 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,69 +1,12 @@
#! /usr/bin/env python

# adapted from mne-python

import contextlib
import os

from setuptools import setup

from codespell_lib import __version__

DISTNAME = 'codespell'
DESCRIPTION = """Codespell"""
MAINTAINER = 'Lucas De Marchi'
MAINTAINER_EMAIL = 'lucas.de.marchi@gmail.com'
URL = 'https://github.com/codespell-project/codespell/'
LICENSE = 'GPL v2'
DOWNLOAD_URL = 'https://github.com/codespell-project/codespell/'
with open('README.rst', 'r') as f:
LONG_DESCRIPTION = f.read()

if __name__ == "__main__":
if os.path.exists('MANIFEST'):
with contextlib.suppress(FileNotFoundError):
os.remove('MANIFEST')

setup(name=DISTNAME,
maintainer=MAINTAINER,
include_package_data=True,
maintainer_email=MAINTAINER_EMAIL,
description=DESCRIPTION,
license=LICENSE,
url=URL,
version=__version__,
download_url=DOWNLOAD_URL,
long_description=LONG_DESCRIPTION,
long_description_content_type='text/x-rst',
zip_safe=False,
classifiers=['Intended Audience :: Developers',
'License :: OSI Approved',
'Programming Language :: Python',
'Topic :: Software Development',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS'],
platforms='any',
python_requires='>=3.7',
packages=[
'codespell_lib',
'codespell_lib.tests',
'codespell_lib.data',
],
package_data={'codespell_lib': [
os.path.join('data', 'dictionary*.txt'),
os.path.join('data', 'linux-kernel.exclude'),
]},
entry_points={
'console_scripts': [
'codespell = codespell_lib:_script_main'
],
},
# TODO: toml will need to be updated when 3.11 comes out as it's a
# CPython module there
extras_require={
"dev": ["check-manifest", "flake8", "pytest", "pytest-cov",
"pytest-dependency", "tomli"],
"hard-encoding-detection": ["chardet"],
"toml": ["tomli"],
}
)
setup()