Skip to content

Commit 0699a35

Browse files
committed
Merge branch 'release/0.1.0'
* release/0.1.0: Creating pyrpo repository from repos.py and pyline
2 parents 06d096c + 282e24e commit 0699a35

33 files changed

+5624
-0
lines changed

.gitignore

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
*.py[cod]
2+
3+
# C extensions
4+
*.so
5+
6+
# Packages
7+
*.egg
8+
*.egg-info
9+
dist
10+
build
11+
eggs
12+
parts
13+
bin
14+
var
15+
sdist
16+
develop-eggs
17+
.installed.cfg
18+
lib
19+
lib64
20+
21+
# Installer logs
22+
pip-log.txt
23+
24+
# Unit test / coverage reports
25+
.coverage
26+
.tox
27+
nosetests.xml
28+
htmlcov
29+
30+
# Translations
31+
*.mo
32+
33+
# UndoTree
34+
*.un~
35+
36+
# Rope
37+
.ropeproject
38+
39+
# Mr Developer
40+
.mr.developer.cfg
41+
.project
42+
.pydevproject
43+
44+
# Complexity
45+
output/*.html
46+
output/*/index.html
47+
48+
# Sphinx
49+
docs/_build

.hgignore

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
syntax:glob
2+
*.py[cod]
3+
4+
# C extensions
5+
*.so
6+
7+
# Packages
8+
*.egg
9+
*.egg-info
10+
dist
11+
build
12+
eggs
13+
parts
14+
bin
15+
var
16+
sdist
17+
develop-eggs
18+
.installed.cfg
19+
lib
20+
lib64
21+
22+
# Installer logs
23+
pip-log.txt
24+
25+
# Unit test / coverage reports
26+
.coverage
27+
.tox
28+
nosetests.xml
29+
htmlcov
30+
31+
# Translations
32+
*.mo
33+
34+
# UndoTree
35+
*.un~
36+
37+
# Rope
38+
.ropeproject
39+
40+
# Mr Developer
41+
.mr.developer.cfg
42+
.project
43+
.pydevproject
44+
45+
# Complexity
46+
output/*.html
47+
output/*/index.html
48+
49+
# Sphinx
50+
docs/_build
51+
docs/build*
52+

.hgtags

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
13ad121ea966dc753eeab0b8f603d6fa8ec8e080 v0.1.1
2+
09cca8fa55559d5b2a94d0a25b1cf3d498649dae v0.1.2
3+
d49705961509567b08b30e8a437c672720935499 v0.1.3
4+
c79a1068cb1c26c1bfa2b9bf117df8d11d03c9ca v0.1.4
5+
8cd9c44a80ab745e28a6bb7d76ee60119d40e286 v0.1.5
6+
13bd5fdd0997edbc6f19c583785e46e6b7dd90a2 v0.1.0
7+
13bd5fdd0997edbc6f19c583785e46e6b7dd90a2 v0.1.0
8+
0000000000000000000000000000000000000000 v0.1.0

.travis.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Config file for automatic testing at travis-ci.org
2+
3+
language: python
4+
5+
python:
6+
# - "3.3"
7+
- "2.7"
8+
# - "2.6"
9+
- "pypy"
10+
11+
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
12+
install: pip install -r requirements.txt
13+
14+
# command to run tests, e.g. python setup.py test
15+
script: python setup.py test

AUTHORS.rst

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
=======
2+
Credits
3+
=======
4+
5+
* Wes Turner -- https://github.com/westurner
6+

CONTRIBUTING.rst

+111
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
============
2+
Contributing
3+
============
4+
5+
Contributions are welcome, and they are greatly appreciated! Every
6+
little bit helps, and credit will always be given.
7+
8+
You can contribute in many ways:
9+
10+
Types of Contributions
11+
----------------------
12+
13+
Report Bugs
14+
~~~~~~~~~~~
15+
16+
Report bugs at https://github.com/westurner/pyrpo/issues.
17+
18+
If you are reporting a bug, please include:
19+
20+
* Your operating system name and version.
21+
* Any details about your local setup that might be helpful in troubleshooting.
22+
* Detailed steps to reproduce the bug.
23+
24+
Fix Bugs
25+
~~~~~~~~
26+
27+
Look through the GitHub issues for bugs. Anything tagged with "bug"
28+
is open to whoever wants to implement it.
29+
30+
Implement Features
31+
~~~~~~~~~~~~~~~~~~
32+
33+
Look through the GitHub issues for features. Anything tagged with "feature"
34+
is open to whoever wants to implement it.
35+
36+
Write Documentation
37+
~~~~~~~~~~~~~~~~~~~
38+
39+
pyrpo could always use more documentation, whether as part of the
40+
official pyrpo docs, in docstrings, or even on the web in blog posts,
41+
articles, and such.
42+
43+
Submit Feedback
44+
~~~~~~~~~~~~~~~
45+
46+
The best way to send feedback is to file an issue at https://github.com/westurner/pyrpo/issues.
47+
48+
If you are proposing a feature:
49+
50+
* Explain in detail how it would work.
51+
* Keep the scope as narrow as possible, to make it easier to implement.
52+
* Remember that this is a volunteer-driven project, and that contributions
53+
are welcome :)
54+
55+
Get Started!
56+
------------
57+
58+
Ready to contribute? Here's how to set up `pyrpo` for local development.
59+
60+
1. Fork the `pyrpo` repo on GitHub.
61+
2. Clone your fork locally::
62+
63+
$ git clone [email protected]:your_name_here/pyrpo.git
64+
65+
3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development::
66+
67+
$ mkvirtualenv pyrpo
68+
$ cd pyrpo/
69+
$ python setup.py develop
70+
71+
4. Create a branch for local development::
72+
73+
$ git checkout -b name-of-your-bugfix-or-feature
74+
75+
Now you can make your changes locally.
76+
77+
5. When you're done making changes, check that your changes pass flake8 and the tests, including testing other Python versions with tox::
78+
79+
$ flake8 pyrpo tests
80+
$ python setup.py test
81+
$ tox
82+
83+
To get flake8 and tox, just pip install them into your virtualenv.
84+
85+
6. Commit your changes and push your branch to GitHub::
86+
87+
$ git add .
88+
$ git commit -m "Your detailed description of your changes."
89+
$ git push origin name-of-your-bugfix-or-feature
90+
91+
7. Submit a pull request through the GitHub website.
92+
93+
Pull Request Guidelines
94+
-----------------------
95+
96+
Before you submit a pull request, check that it meets these guidelines:
97+
98+
1. The pull request should include tests.
99+
2. If the pull request adds functionality, the docs should be updated. Put
100+
your new functionality into a function with a docstring, and add the
101+
feature to the list in README.rst.
102+
3. The pull request should work for Python 2.6, 2.7, and 3.3, and for PyPy. Check
103+
https://travis-ci.org/westurner/pyrpo/pull_requests
104+
and make sure that the tests pass for all supported Python versions.
105+
106+
Tips
107+
----
108+
109+
To run a subset of tests::
110+
111+
$ python -m unittest tests.test_pyrpo

HISTORY.rst

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. :changelog:
2+
3+
History
4+
=========
5+
6+
7+
0.1.0 (2014-05-12)
8+
++++++++++++++++++
9+
* First release on PyPI.
10+
* Re-packaged from https://github.com/westurner/dotfiles/blob/2813e4ad/scripts/repos.py

LICENSE

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Copyright (c) 2014, Wes Turner
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5+
6+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7+
8+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
9+
10+
* Neither the name of pyrpo nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
11+
12+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

MANIFEST.in

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
include AUTHORS.rst
2+
include CONTRIBUTING.rst
3+
include HISTORY.rst
4+
include LICENSE
5+
include README.rst
6+
7+
recursive-include tests *
8+
recursive-exclude * __pycache__
9+
recursive-exclude * *.py[co]
10+
11+
recursive-include docs *.rst conf.py Makefile make.bat

Makefile

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
.PHONY: clean-pyc clean-build docs clean
2+
3+
help:
4+
@echo "clean-build - remove build artifacts"
5+
@echo "clean-pyc - remove Python file artifacts"
6+
@echo "lint - check style with flake8"
7+
@echo "test - run tests quickly with the default Python"
8+
@echo "test-all - run tests on every Python version with tox"
9+
@echo "coverage - check code coverage quickly with the default Python"
10+
@echo "docs - generate Sphinx HTML documentation, including API docs"
11+
@echo "release - package and upload a release"
12+
@echo "dist - package"
13+
14+
clean: clean-build clean-pyc
15+
rm -fr htmlcov/
16+
17+
clean-build:
18+
rm -fr build/
19+
rm -fr dist/
20+
rm -fr *.egg-info
21+
22+
clean-pyc:
23+
find . -name '*.pyc' -exec rm -f {} +
24+
find . -name '*.pyo' -exec rm -f {} +
25+
find . -name '*~' -exec rm -f {} +
26+
27+
lint:
28+
flake8 pyrpo tests
29+
30+
test:
31+
python setup.py test
32+
33+
test-all:
34+
tox
35+
36+
coverage:
37+
coverage run --source pyrpo setup.py test
38+
coverage report -m
39+
coverage html
40+
open htmlcov/index.html
41+
42+
docs:
43+
rm -f docs/pyrpo.rst
44+
rm -f docs/modules.rst
45+
sphinx-apidoc -o docs/ pyrpo
46+
$(MAKE) -C docs clean
47+
$(MAKE) -C docs html
48+
#open docs/_build/html/index.html
49+
50+
release: clean
51+
# ver=v0.1.1
52+
## update HISTORY.txt
53+
# release date
54+
# release version
55+
# summary
56+
## update version in setup.py
57+
# sed "s/version='\(.*\)'/version='${ver}'/g"
58+
## update version in pyrpo/__init__.py
59+
# sed "s/__version__ = '\(.*\)'/__version__ = '${ver}'/g"
60+
## add updated version to repository
61+
# hg commit -m setup.py pyrpo/__init__.py
62+
# git commit -m setup.py pyrpo/__init__.py
63+
## tag the release in the repository
64+
## hg tag "v${ver}"
65+
# git tag "v${ver}"
66+
## push the changes
67+
# hg push
68+
# git push
69+
## update http://github.com/westurner/pyrpo/releases
70+
## with a new tagged release
71+
# browse to url, select version tag, click 'Edit release'
72+
# set the release name to "pyrpo v${ver}"
73+
## register with pypi
74+
# python setup.py build register
75+
## generate a source distribution and upload to pypi
76+
python setup.py sdist upload
77+
#python setup.py bdist_wheel upload
78+
79+
dist: clean
80+
python setup.py sdist
81+
python setup.py bdist_wheel
82+
ls -l dist
83+
84+
docs_rsync_to_local:
85+
rsync -avr ./docs/_build/html/ $(_DOCSHTML)/pyrpo
86+
87+
docs_rebuild:
88+
$(MAKE) docs
89+
$(MAKE) docs_rsync_to_local

0 commit comments

Comments
 (0)