Skip to content

Commit

Permalink
move static setup config to setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
purarue committed Sep 25, 2023
1 parent dce4327 commit 7bf882b
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 58 deletions.
11 changes: 0 additions & 11 deletions requirements.txt

This file was deleted.

71 changes: 66 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,10 +1,71 @@
[metadata]
name = scramble_history
version = 0.1.15
description = parses scramble history from cstimer.net and other sources
long_description = file: README.md
long_description_content_type = text/markdown
url = "https://github.com/seanbreckenridge/scramble_history"
author = Sean Breckenridge
author_email = "[email protected]"
license = MIT
license_files = LICENSE
classifiers =
License :: OSI Approved :: MIT License
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
keywords = cubing data

[options]
packages = find:
install_requires =
IPython
autotui>=0.4.3
click>=8.0
logzero
more-itertools
platformdirs
pytimeparse
pyyaml
requests
simplejson
tabulate
python_requires = >=3.8
include_package_data = True

[options.packages.find]
exclude =
tests*
include =
scramble_history

[options.entry_points]
console_scripts =
scramble_history = scramble_history.__main__:main

[options.extras_require]
optional =
orjson
seaborn
testing =
flake8
mypy
pytest

[options.package_data]
scramble_history = py.typed

[flake8]
ignore=E501,E402,W503,E266,E203
ignore = E501,E402,W503,E266,E203

[mypy]
pretty = True
show_error_context = True
show_error_codes = True
show_error_codes = True
check_untyped_defs = True
namespace_packages = True
disallow_any_generics = True
Expand All @@ -19,6 +80,6 @@ warn_unreachable = True

[tool:pytest]
addopts =
--doctest-modules scramble_history
--verbose
tests
--doctest-modules scramble_history
--verbose
tests
44 changes: 2 additions & 42 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,43 +1,3 @@
from pathlib import Path
from setuptools import setup, find_packages
from setuptools import setup

long_description = Path("README.md").read_text()
reqs = Path("requirements.txt").read_text().strip().splitlines()

pkg = "scramble_history"
setup(
name=pkg,
version="0.1.15",
url="https://github.com/seanbreckenridge/scramble-history",
author="Sean Breckenridge",
author_email="[email protected]",
description=("""parses scramble history from cstimer.net and other sources"""),
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
packages=find_packages(include=[pkg]),
install_requires=reqs,
package_data={pkg: ["py.typed"]},
zip_safe=False,
keywords="cubing data",
python_requires=">=3.8",
entry_points={
"console_scripts": ["scramble_history = scramble_history.__main__:main"]
},
extras_require={
"optional": ["orjson", "seaborn"],
"testing": [
"pytest",
"mypy",
"flake8",
],
},
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
)
setup()

0 comments on commit 7bf882b

Please sign in to comment.