Skip to content

Commit aec61c5

Browse files
committed
Set up PyPI and Travis-CI
1 parent 0a93b79 commit aec61c5

File tree

6 files changed

+95
-10
lines changed

6 files changed

+95
-10
lines changed

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: python
2+
python:
3+
- '2.7'
4+
- '3.2'
5+
- '3.3'
6+
- '3.4'
7+
- '3.5'
8+
install:
9+
- pip install -r requirements.txt
10+
- pip install -r test_requirements.txt
11+
script: nosetests
12+
deploy:
13+
provider: pypi
14+
user: ethantkoenig
15+
password:
16+
secure: sqBYW61yvGApUb79YUQ0AJ028olyJt1jGUOaHeZo9POopxgjhUzNNcoDn7JacqtcihGpcMHkpILHWFTMmGxYUQpnPdtB8crTxGoU0aNAQ5hsV5eg/Eay8eWlaKTmoIFvDcKJPbowZFx1wI1WrHrxlfaBtpU3aPl0dV3i2LgZP05dWBEjDuQ6NMx2QlRJkwwmVwLTvnxUcloKEqcNOs09xQjfOZjkZTk9xlkCzoQnaiUBXxYhA8YMxYVVPT7Nrrvlt0b/Qb1pL7FM21qleIwKT5rCiDvu+Dy0rqw5B+HtkVVsnwlkrUyqq1Y/WnrNMyBNCnlwfC6ytirsI/Q2DFNDrQ+z/+CE3HqcZEJw0QYSovYlpSOFHyr0iqnApl3ubQT9U5JLwuFNcr8wkgc1m13S85qTFEtpAPPZDsXrbBGQTsCmZvqFSsHtTp/dRdlxPR/2YbE/AzDYDdazlnR//UYZen/towXK7FEISKeS8Gzq3p1H7MQnuu4GXM8zHoGXHZPV65Zafx8RebCWN3ogliYdA3GxmmScAhJdd0q+K0A+KCicZJbwJh09dUqXfu6z95bO85rCaW2B6PWYo3adGlNxMfr+t7FnbNdMECstHZX08hnZPIqC3QCSEc4L2AiWeQsLzpYuUYQ9oS2fsObbGn4RpQpVyJ/K9ze5uDO6XvI7FPQ=
17+
on:
18+
tags: true

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2016 unfoldingWord
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

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

README.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Master:
2+
3+
.. image:: https://travis-ci.org/unfoldingWord-dev/python-gogs-client.svg?branch=master
4+
:alt: Build Status
5+
:target: https://travis-ci.org/unfoldingWord-dev/python-gogs-client
6+
7+
Develop:
8+
9+
.. image:: https://travis-ci.org/unfoldingWord-dev/python-gogs-client.svg?branch=develop
10+
:alt: Build Status
11+
:target: https://travis-ci.org/unfoldingWord-dev/python-gogs-client
12+
13+
python-gogs-client
14+
==================
15+
16+
This is a Python client to Gogs servers.
17+
18+
`tX <https://github.com/unfoldingWord-dev/door43.org/wiki/tX-Development-Architecture>`_
19+
uses this package in it's ``tx-manager`` component as the ``tx-auth`` module.
20+
21+
The easiest way to install is via ``pip``::
22+
23+
$ pip install gogs_client

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[bdist_wheel]
2+
universal=1

setup.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
from setuptools import setup, find_packages
2+
from codecs import open
3+
from os import path
4+
5+
here = path.abspath(path.dirname(__file__))
6+
7+
8+
with open(path.join(here, "README.rst"), "r") as f:
9+
long_description = f.read()
10+
11+
setup(
12+
name="gogs_client",
13+
version="1.0.0",
14+
description="A python library for interacting with a gogs server",
15+
long_description=long_description,
16+
url="https://github.com/unfoldingWord-dev/python-gogs-client",
17+
author="unfoldingWord",
18+
author_email="ethantkoenig@gmail.com",
19+
license="MIT",
20+
classifiers=[
21+
"License :: OSI Approved :: MIT License",
22+
"Programming Language :: Python :: 2.7",
23+
'Programming Language :: Python :: 3',
24+
'Programming Language :: Python :: 3.2',
25+
'Programming Language :: Python :: 3.3',
26+
'Programming Language :: Python :: 3.4'
27+
],
28+
keywords=["gogs", "http", "client"],
29+
packages=find_packages(),
30+
install_requires=["future", "requests"]
31+
)

0 commit comments

Comments
 (0)