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
seanbreckenridge committed Sep 25, 2023
1 parent 0f719a2 commit e7005d2
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 61 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/mypy.yaml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Tests
name: CI

on:
push:
Expand Down Expand Up @@ -27,3 +27,6 @@ jobs:
run: |
mypy --install-types --non-interactive ./malexport
mypy ./malexport
- name: Run flake8
run: |
flake8 ./malexport
20 changes: 10 additions & 10 deletions malexport/parse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
from .messages import iter_user_threads

__all__ = [
'parse_xml',
'parse_list',
'iter_forum_posts',
'iter_user_history',
'iter_friends',
'ListType',
'combine',
'Entry',
'iter_api_list',
'iter_user_threads',
"parse_xml",
"parse_list",
"iter_forum_posts",
"iter_user_history",
"iter_friends",
"ListType",
"combine",
"Entry",
"iter_api_list",
"iter_user_threads",
]
12 changes: 0 additions & 12 deletions requirements.txt

This file was deleted.

65 changes: 64 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,70 @@
[metadata]
name = malexport
version = 0.1.4
description = backs up info from your MAL account
long_description = file: README.md
long_description_content_type = text/markdown
url = "https://github.com/seanbreckenridge/malexport"
author = Sean Breckenridge
author_email = "seanbrecke@gmail.com"
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 = anime, data, webscraping

[options]
packages = find:
install_requires =
PyYaml
backoff>=2.0.0
click>=8.0
cssselect
dateparser
gitpython
logzero
lxml
more-itertools
requests
selenium>=4.10.0
simplejson
python_requires = >=3.8
include_package_data = True

[options.packages.find]
include =
malexport
malexport.utils
malexport.parse
malexport.exporter

[options.extras_require]
manual =
autotui
pyfzf-iter
recover =
hpi
testing =
flake8
mypy

[options.package_data]
malexport = py.typed

[flake8]
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 Down
40 changes: 3 additions & 37 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,38 +1,4 @@
from pathlib import Path
from setuptools import setup, find_packages # type: ignore[import]
from setuptools import setup

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

pkg = "malexport"
setup(
name=pkg,
version="0.1.4",
url="https://github.com/seanbreckenridge/malexport",
author="Sean Breckenridge",
author_email="seanbrecke@gmail.com",
description=("""backs up info from your MAL account"""),
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
packages=find_packages(),
install_requires=reqs,
package_data={pkg: ["py.typed"]},
zip_safe=False,
keywords="",
entry_points={"console_scripts": ["malexport = malexport.__main__:main"]},
extras_require={
"testing": ["mypy"],
"recover": ["hpi"],
"manual": ["autotui", "pyfzf_iter"],
},
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",
"Programming Language :: Python :: 3.11",
],
)
if __name__ == "__main__":
setup()

0 comments on commit e7005d2

Please sign in to comment.