Skip to content

Commit

Permalink
Publish on pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Mar 19, 2017
1 parent a006e1a commit d9ea052
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build/
dist/
*.egg-info
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
install:
cp termux-apt-repo $(PREFIX)/bin/termux-apt-repo

.PHONY: install
pypi:
rm -Rf dist/ build/ termux_apt_repo.egg-info/
python3 setup.py sdist bdist_wheel egg_info
twine upload dist/*

.PHONY: install pypi
3 changes: 1 addition & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ as:
termux-apt-repo <directory-with-debs> <apt-repository-directory>

When using outside Termux (the script should work on most Linux
distributions), or when developing this script inside Termux, run the
script directory with ``python termux-apt-repo``.
distributions), install with ``pip3 install termux-apt-repo``.

All the .deb files in the first directory will be published to a newly
created APT repository in the second directory (which will be deleted if
Expand Down
23 changes: 23 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from setuptools import setup

# https://packaging.python.org/distributing/#packaging-your-project

def readme():
with open('README.rst') as f:
return f.read()
setup(
name = 'termux-apt-repo',
version = '0.2',
license = 'MIT',
description = 'Script to create Termux apt repositories',
long_description = readme(),
author = 'Fredrik Fornwall',
author_email = 'fredrik@fornwall.net',
url = 'https://github.com/termux/termux-apt-repo',
scripts = ['termux-apt-repo'],
classifiers = (
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'Programming Language :: Python :: 3'
)
)

0 comments on commit d9ea052

Please sign in to comment.