Skip to content

Commit b3c8a50

Browse files
authored
Merge pull request #150 from digitronik/release_job
Release job
2 parents b162db2 + fc9d3c7 commit b3c8a50

File tree

6 files changed

+78
-33
lines changed

6 files changed

+78
-33
lines changed

.github/workflows/deploy.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish readit to PyPI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- '*'
9+
10+
jobs:
11+
build-and-publish:
12+
name: Build and publish readit distributions to PyPI
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout to master
16+
uses: actions/checkout@master
17+
18+
- name: Setup python
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: '3.7'
22+
architecture: 'x64'
23+
24+
- name: Build Package
25+
run: |
26+
python -m pip install --upgrade setuptools wheel twine
27+
python setup.py sdist bdist_wheel
28+
- name: Package check
29+
run: twine check dist/*
30+
- name: Deploy to PyPi readit
31+
if: startsWith(github.event.ref, 'refs/tags')
32+
uses: pypa/gh-action-pypi-publish@master
33+
with:
34+
user: __token__
35+
password: ${{ secrets.pypi_readit }}

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

requirements.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

requirements_dev.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pre-commit
2+
pytest
3+
readme_renderer

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 = ganeshhubale03@gmail.com
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="ganeshhubale03@gmail.com",
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)