Skip to content

Commit

Permalink
move config to setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
purarue committed Oct 2, 2023
1 parent b00afdf commit 59138c8
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 61 deletions.
Empty file added calcurse_load/py.typed
Empty file.
15 changes: 0 additions & 15 deletions mypy.ini

This file was deleted.

3 changes: 0 additions & 3 deletions pytest.ini

This file was deleted.

4 changes: 0 additions & 4 deletions requirements.txt

This file was deleted.

74 changes: 74 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
[metadata]
name = calcurse_load
version = 0.1.0
description = Sources events for calcurse from Google Calendar and todo.txt
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/seanbreckenridge/calcurse_load
author = Sean Breckenridge
author_email = "[email protected]"
license = MIT
license_files = LICENSE
keywords = calendar todo google
classifiers =
License :: OSI Approved :: MIT License
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

[options]
install_requires =
click
cssselect
gcsa>=0.4.0
lxml
python_requires = >=3.8
include_package_data = True
packages = find:

[options.entry_points]
console_scripts =
calcurse_load = calcurse_load.__main__:cli
gcal_index = gcal_index.__main__:main

[options.packages.find]
exclude =
tests*
include =
calcurse_load
gcal_index

[options.extras_require]
testing =
flake8
mypy
pytest

[options.package_data]
calcurse_load = py.typed

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

[mypy]
pretty = True
show_error_context = True
show_error_codes = True
check_untyped_defs = True
namespace_packages = True
disallow_any_generics = True
disallow_subclassing_any = True
disallow_untyped_calls = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
no_implicit_optional = True
warn_redundant_casts = True
warn_return_any = True
warn_unreachable = True

[tool:pytest]
addopts =
--doctest-modules calcurse_load
42 changes: 3 additions & 39 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,40 +1,4 @@
import io
from setuptools import setup, find_packages
from pathlib import Path
from setuptools import setup

reqs = Path("requirements.txt").read_text().splitlines()


# Use the README.md content for the long description:
with io.open("README.md", encoding="utf-8") as fo:
long_description = fo.read()

setup(
name="calcurse_load",
version="0.1.0",
url="https://github.com/seanbreckenridge/calcurse_load",
author="Sean Breckenridge",
author_email="[email protected]",
description="""Sources events for calcurse from Google Calendar and todo.txt""",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
packages=find_packages(),
test_suite="tests",
install_requires=reqs,
python_requires=">=3.7",
keywords="calendar todo",
entry_points={
"console_scripts": [
"calcurse_load = calcurse_load.__main__:cli",
"gcal_index = gcal_index.__main__:main",
]
},
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
)
if __name__ == "__main__":
setup()

0 comments on commit 59138c8

Please sign in to comment.