Skip to content

Commit fc9d3c7

Browse files
committed
introduce setup.cfg for metadata
1 parent 1718ef8 commit fc9d3c7

File tree

4 files changed

+43
-29
lines changed

4 files changed

+43
-29
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ jobs:
2323

2424
- name: Build Package
2525
run: |
26-
python -m pip install --upgrade setuptools wheel
26+
python -m pip install --upgrade setuptools wheel twine
2727
python setup.py sdist bdist_wheel
28-
28+
- name: Package check
29+
run: twine check dist/*
2930
- name: Deploy to PyPi readit
3031
if: startsWith(github.event.ref, 'refs/tags')
3132
uses: pypa/gh-action-pypi-publish@master

MANIFEST.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
include *.py
21
include README.md
32
include LICENSE
4-
include requirements.txt

setup.cfg

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,41 @@
1+
[metadata]
2+
name = readit
3+
description = Readit - Command Line Bookmark Manager Tool
4+
home-page = https://github.com/projectreadit/readit
5+
author = Ganesh, Shital, Daivshala
6+
author-email = [email protected]
7+
use_scm_version = true
8+
long_description = file: README.rst
9+
long_description_content_type = text/x-rst
10+
license = GNU General Public License v3.0
11+
license-file = LICENSE
12+
keywords =
13+
clitool
14+
bookmark
15+
readit
16+
classifiers =
17+
Development Status :: 4 - Beta
18+
Programming Language :: Python
19+
Programming Language :: Python :: 3.6
20+
Programming Language :: Python :: 3.7
21+
Environment :: Console
22+
Topic :: Internet
23+
Topic :: Utilities
24+
25+
[options]
26+
zip_safe = false
27+
include_package_data = true
28+
packages = find:
29+
python_requires = >= 3.6
30+
setup_requires = setuptools
31+
install_requires =
32+
beautifultable
33+
click
34+
requests
35+
36+
[options.entry_points]
37+
console_scripts =
38+
readit = readit:main
39+
140
[flake8]
241
max_line_length = 100

setup.py

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,3 @@
1-
from setuptools import find_packages
21
from setuptools import setup
32

4-
with open("README.rst") as readme_file:
5-
long_description = readme_file.read()
6-
7-
install_requires = ["setuptools", "requests", "click", "beautifultable"]
8-
9-
setup(
10-
name="readit",
11-
packages=find_packages(),
12-
entry_points={"console_scripts": ["readit = readit.__init__:main"]},
13-
version="0.2",
14-
author="Ganesh, Shital, Daivshala",
15-
author_email="[email protected]",
16-
description="Readit - Command Line Bookmark Manager Tool",
17-
long_description=long_description,
18-
license="GNU General Public License v3.0",
19-
keywords="clitool bookmark readit",
20-
url="https://github.com/projectreadit/readit",
21-
py_modules=["readit.__init__"],
22-
namespace_packages=[],
23-
include_package_data=True,
24-
zip_safe=False,
25-
install_requires=install_requires,
26-
scripts=["test_readit.py"],
27-
)
3+
setup()

0 commit comments

Comments
 (0)