Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
damnever committed Apr 24, 2018
1 parent 0fa0a2d commit 76cfe77
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion CHANGELOGS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Version 0.6.0 (2015.10.30)
Version 0.5.5 (2015.10.21)
^^^^^^^^^^^^^^^^^^^^^^^^^^

- Fixed issue `#2 <https://github.com/damnever/pigar/issues/2>`_ , `#3 <https://github.com/damnever/pigar/issues/3>`_ , `#4 <https://github.com/Damnever/pigar/issues/4>`_ , `#5 <https://github.com/damnever/pigar/issues/5>`_.
- Fixed issue `#2 <https://github.com/damnever/pigar/issues/2>`_ , `#3 <https://github.com/damnever/pigar/issues/3>`_ , `#4 <https://github.com/damnever/pigar/issues/4>`_ , `#5 <https://github.com/damnever/pigar/issues/5>`_.


Version 0.5.2-0.5.4 (2015.10.6)
Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015, Damnever<[email protected]>
Copyright (c) 2018, damnever<[email protected]>
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Expand All @@ -9,4 +9,4 @@ Redistribution and use in source and binary forms, with or without modification,

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

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.
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.
4 changes: 2 additions & 2 deletions README-PYPI.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Features
--------

- Generate requirements for project, ``pigar`` can consider all kinds of complicated situations. In this project, `py2_requirements.txt <https://github.com/Damnever/pigar/blob/master/py2_requirements.txt>`_ and `py3_requirements.txt <https://github.com/Damnever/pigar/blob/master/py3_requirements.txt>`_ for different python versions ::
- Generate requirements for project, ``pigar`` can consider all kinds of complicated situations. In this project, `py2_requirements.txt <https://github.com/damnever/pigar/blob/master/py2_requirements.txt>`_ and `py3_requirements.txt <https://github.com/damnever/pigar/blob/master/py3_requirements.txt>`_ for different python versions ::

# Generate requirements.txt for current directory.
$ pigar
Expand Down Expand Up @@ -41,6 +41,6 @@ Features
More
----

You can find more information on `GitHub <https://github.com/Damnever/pigar>`_ .
You can find more information on `GitHub <https://github.com/damnever/pigar>`_ .


12 changes: 6 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ Python project requirements tool – pigar
:target: https://pypi.python.org/pypi/pigar


.. image:: https://raw.githubusercontent.com/Damnever/pigar/master/short-guide.gif
:target: https://raw.githubusercontent.com/Damnever/pigar/master/short-guide.gif
.. image:: https://raw.githubusercontent.com/damnever/pigar/master/short-guide.gif
:target: https://raw.githubusercontent.com/damnever/pigar/master/short-guide.gif

(In the GIF, the module ``urlparse`` has been removed in Python3, ``requests`` has been installed in virtual environment ``pigar-2.7``, not in ``pigar-3.5``)


Features
--------

- When generating requirements for a project, ``pigar`` can consider all kinds of complicated situations. For example, this project has `py2_requirements.txt <https://github.com/Damnever/pigar/blob/master/py2_requirements.txt>`_ and `py3_requirements.txt <https://github.com/Damnever/pigar/blob/master/py3_requirements.txt>`_ for different Python versions. ::
- When generating requirements for a project, ``pigar`` can consider all kinds of complicated situations. For example, this project has `py2_requirements.txt <https://github.com/damnever/pigar/blob/master/py2_requirements.txt>`_ and `py3_requirements.txt <https://github.com/damnever/pigar/blob/master/py3_requirements.txt>`_ for different Python versions. ::

# Generate requirements.txt for current directory.
$ pigar
Expand Down Expand Up @@ -56,7 +56,7 @@ Installation

To get the newest code from GitHub: ::

pip install git+https://github.com/Damnever/pigar.git@[master or other branch] --upgrade
pip install git+https://github.com/damnever/pigar.git@[master or other branch] --upgrade

Usage
-----
Expand Down Expand Up @@ -100,9 +100,9 @@ Also, ``pigar`` can detect the difference between different Python versions. For

Finally, you already saw ``Features``. You can learn more from the source code.

If you have any issues or suggestions, `please submit an issue on GitHub <https://github.com/Damnever/pigar/issues>`_.
If you have any issues or suggestions, `please submit an issue on GitHub <https://github.com/damnever/pigar/issues>`_.

LICENSE
-------

`The BSD 3-Clause License <https://github.com/Damnever/pigar/blob/master/LICENSE>`_
`The BSD 3-Clause License <https://github.com/damnever/pigar/blob/master/LICENSE>`_
2 changes: 1 addition & 1 deletion pigar/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def _write_reqs(self, reqs):
self._save_path)))
with open(self._save_path, 'w+') as f:
f.write('# Requirements automatically generated by pigar.\n'
'# https://github.com/Damnever/pigar\n')
'# https://github.com/damnever/pigar\n')
for k, v in reqs.sorted_items():
f.write('\n')
f.write(''.join(['# {0}\n'.format(c)
Expand Down
2 changes: 1 addition & 1 deletion pigar/reqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def visit_Exec(self, node):
"""
if hasattr(node.body, 's'):
self._str_codes.append((node.body.s, node.lineno + self._lineno))
# PR#13: https://github.com/Damnever/pigar/pull/13
# PR#13: https://github.com/damnever/pigar/pull/13
# Sometimes exec statement may be called with tuple in Py2.7.6
elif hasattr(node.body, 'elts') and len(node.body.elts) >= 1:
self._str_codes.append(
Expand Down
10 changes: 5 additions & 5 deletions py2_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Requirements automatically generated by pigar.
# https://github.com/Damnever/pigar
# https://github.com/damnever/pigar

# pigar/utils.py: 10
colorama == 0.3.7
colorama == 0.3.9

# pigar/extractor/thread_extractor.py: 5
futures == 3.0.5
futures == 3.2.0

# pigar/__init__.py: 10
# pigar/extractor/gevent_extractor.py: 8
gevent == 1.1.1
gevent == 1.2.2

# pigar/extractor/gevent_extractor.py: 7
greenlet == 0.4.9
greenlet == 0.4.13
8 changes: 4 additions & 4 deletions py3_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Requirements automatically generated by pigar.
# https://github.com/Damnever/pigar
# https://github.com/damnever/pigar

# pigar/utils.py: 10
colorama == 0.3.7
colorama == 0.3.9

# pigar/__init__.py: 10
# pigar/extractor/gevent_extractor.py: 8
gevent == 1.1.1
gevent == 1.2.2

# pigar/extractor/gevent_extractor.py: 7
greenlet == 0.4.9
greenlet == 0.4.12
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
description=('A fantastic tool to generate requirements for your'
' Python project, and more than that.'),
long_description=long_description + '\n\n' + change_logs,
url='https://github.com/Damnever/pigar',
author='Damnever',
url='https://github.com/damnever/pigar',
author='damnever',
author_email='[email protected]',
license='The BSD 3-Clause License',
classifiers=[
Expand Down

0 comments on commit 76cfe77

Please sign in to comment.