Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
fopina committed Jan 24, 2019
1 parent 70b6425 commit 0b9600c
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.coverage
.idea
/.coverage
/.idea
*.pyc
/dist
/MANIFEST
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,11 @@ jobs:
script:
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
- make travis-tag TAG=$TRAVIS_TAG
- echo $TRAVIS_TAG > VERSION
deploy:
provider: pypi
user: fopina
password: $PYPI_PASSWORD
skip_cleanup: true
on:
tags: true
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include LICENSE
include README.md
include VERSION
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,11 @@ test:
dockertest: build
docker run --rm -ti $(IMAGE) -h

pypi:
python setup.py sdist upload

.PHONY: push build travis-dev travis-tag test dockertest
pypitest:
python setup.py sdist upload -r https://test.pypi.org/legacy/


.PHONY: push build travis-dev travis-tag test dockertest pypi pypitest
45 changes: 45 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/usr/bin/env python

from distutils.core import setup

README = open('README.md').read()
try:
VERSION = open('VERSION').read().strip()
except IOError:
VERSION = 'dev'

setup(
name='kdbxpasswordpwned',
version=VERSION,
description='Check KeePass passwords against https://haveibeenpwned.com/Passwords',
long_description_content_type='text/markdown',
long_description=README,
author='Filipe Pina',
author_email='fopina@skmobi.com',
url='https://github.com/fopina/kdbxpasswordpwned',
py_modules=['kdbxpasswordpwned'],
install_requires=[
'requests',
'libkeepass',
],
entry_points={
'console_scripts': ['kdbxpasswordpwned=kdbxpasswordpwned:main']
},
classifiers=[
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
keywords=['keepass', 'hibp', 'password', 'data', 'breach', 'leak']
)

0 comments on commit 0b9600c

Please sign in to comment.