262 Commits

Author SHA1 Message Date
Jake Teo
b69429b65d
Merged changes from original repo, changed '--dynamic' to '--mode'
* fixed MySQL + krbV mappings to be reversed

* Working on issue #88

* More --clean tests.

* Fixed #88

* mapping aws-sam-translator

https://pypi.org/project/aws-sam-translator/
https://github.com/awslabs/serverless-application-model

* Fixed#133

Sorted `imports` based on `lowercase` package's `name`, similar to `pip freeze`.

* Tweak formatting

* Add pyAFQ Mapping

* Add discord mapping

Map discord to discord.py

* Add PyFunctional mapping

Maps `functional` to `pyfunctional`. Fixes #232.

* Upgrade pip before running tests on travis

This should ensure that all tests use the same version of pip and this should hopefully fix the pypy build that is using pip 19

* Upgrading pypy to pypy3

Maybe forcing pypy to use python 3 will solve the issue (although it works fine with python 2.7 at the moment)

* Remove unecessary pip upgrade step

* Mapping for github3

* changes based on discussions w maintainer

* remove obsolete '=='

Co-authored-by: Hari Sekhon <harisekhon@gmail.com>
Co-authored-by: AlexPHorta <alexandre.horta@gmail.com>
Co-authored-by: Pat Myron <PatMyron@users.noreply.github.com>
Co-authored-by: Abhishek Kumar Singh <toanant@users.noreply.github.com>
Co-authored-by: Ben Bodenmiller <bbodenmiller@gmail.com>
Co-authored-by: John Kruper <36000@users.noreply.github.com>
Co-authored-by: Paweł Kalemba <5924586+pkalemba@users.noreply.github.com>
Co-authored-by: SwiftWinds <12981958+SwiftWinds@users.noreply.github.com>
Co-authored-by: Alan Barzilay <alan-barzilay@users.noreply.github.com>
Co-authored-by: alan-barzilay <alan.barzilay@gmail.com>
Co-authored-by: ryan-rozario <ryan.rozario1999@gmail.com>
Co-authored-by: Siyang <teo_siyang@imda.gov.sg>
2021-03-29 22:20:28 +08:00
Jake Teo
4eae4794a0
New Option for Dynamic Versioning (#1)
* added new option for dynamic versioning

* added quotes for dynamic options

Co-authored-by: Siyang <teo_siyang@imda.gov.sg>
2021-03-25 17:37:00 +08:00
Jon Banafato
060f52f597
Merge pull request #203 from jonafato/fix-flake8
Fix flake8 error for latest release
2020-05-18 19:46:19 -04:00
Jon Banafato
3f06f4375a Fix flake8 error for latest release 2020-05-18 19:21:05 -04:00
Vadim Kravcenko
6ca1f42d4e
Merge pull request #111 from yonatanp/master
bugfix: f.close() only required if open succeeded
v0.4.10 v0.4.8
2019-11-14 11:43:11 +01:00
Vadim Kravcenko
05a28a461f
Merge pull request #143 from andrew-vant/patch-1
Add patricia-trie mapping
2019-11-14 11:42:32 +01:00
Vadim Kravcenko
2d3fd405e4
Merge pull request #166 from raxod502/rr-mpv-and-portalocker
Fix mappings for python-mpv and portalocker
2019-11-14 11:39:17 +01:00
Vadim Kravcenko
d37bfbccce
Merge pull request #175 from PatMyron/patch-1
mapping cfn-lint
2019-11-14 11:38:29 +01:00
Vadim Kravcenko
e9731a9632
Merge pull request #173 from HariSekhon/mysql-python
added MySQL-python and krbV mappings
2019-11-14 11:37:06 +01:00
Vadim Kravcenko
591c907b62
Merge pull request #153 from invious/master
deduped, sorted, and added typing package to standard library file
2019-11-14 11:35:10 +01:00
Vadim Kravcenko
6a49451471
Merge pull request #167 from raxod502/feat/setuptools
Add setuptools to stdlib
2019-11-14 11:34:13 +01:00
Vadim Kravcenko
e76ad4dde4
Merge pull request #165 from raxod502/feat/pysynth-and-slack
Add mappings for PySynth and slackclient
2019-11-14 11:33:54 +01:00
Vadim Kravcenko
480ec3ab9a
Merge pull request #171 from kanoonsantikul/feature/omit-version
support omit package output version
2019-11-14 11:33:28 +01:00
Pat Myron
a11aa924b3
mapping cfn-lint
https://github.com/aws-cloudformation/cfn-python-lint/
2019-11-03 11:22:32 -08:00
Hari Sekhon
0cad380111 added krbV -> krbv mapping 2019-10-21 15:33:59 +01:00
Hari Sekhon
deaf895b1e added MySQL-python mapping 2019-10-21 15:14:24 +01:00
Niti Santikul
71fc2dc90c support omit package output version 2019-10-21 00:53:03 +07:00
Radon Rosborough
d0d9fe58e2 Also add pkg_resources 2019-08-08 14:51:27 -07:00
Radon Rosborough
443d9e595b Add setuptools to stdlib 2019-08-08 11:24:17 -07:00
Radon Rosborough
1753e1ff41 Fix mappings for python-mpv and portalocker 2019-08-08 11:16:10 -07:00
Radon Rosborough
21cac5723b Add mappings for PySynth and slackclient 2019-08-02 14:30:48 -07:00
Aymon Fournier
8cc70869b0 deduped, sorted, and added typing package to standard library file 2019-01-28 17:51:33 -05:00
Andrew Vant
3daaebfa17
Add patricia-trie mapping
For this package: https://pypi.org/project/patricia-trie/. Old, but I think it's the
only pure-python trie implementation on pypi.
2018-11-20 15:20:12 -05:00
Jon Banafato
15208540da
Merge pull request #129 from answerquest/patch-1
Add Cryptodome:pycryptodomex
2018-11-08 22:52:24 -05:00
Jon Banafato
529a5e0eea
Merge pull request #137 from tyhunt99/master
Add prefetch:django-prefetch
2018-10-19 14:40:57 -04:00
Tyler Hunt
ea731aab13 added a mapping for django-prefetch -> prefetch 2018-10-19 10:36:52 -06:00
Nikhil VJ
e4817bc68d
Add Cryptodome:pycryptodomex
Ref: https://github.com/bndr/pipreqs/issues/66#issuecomment-415642021  This is a wholly separate package from pycryptodome (which replaced pycrypto in #124 and uses the namespace Crypto in import statments). This uses the namespace `Cryptodome` (is that what we call the parent name of module when importing?)
2018-08-24 09:20:30 +05:30
Vadim Kravcenko
0b8c38ce41
Merge pull request #124 from answerquest/patch-1
Replace pycrypto with pycryptodome
2018-08-23 17:25:26 +02:00
Vadim Kravcenko
f0b8593809
Merge pull request #116 from ch-nickgustafson/fix-oauth-and-sort-bugs
Fix oauth and sort bugs
2018-08-23 17:25:13 +02:00
Nikhil VJ
abd57602fe
Replace pycrypto with pycryptodome
Replace pycrypto with pycryptodome. See https://github.com/bndr/pipreqs/issues/66 for details.
2018-04-04 13:56:19 +05:30
Nick Gustafson
4571740919 add test for get_pkg_names change 2018-02-08 11:05:47 -08:00
Nick Gustafson
712879a7be fix sorting bug in get_pkg_names for consistency with pip freeze 2018-02-08 10:11:16 -08:00
Nick Gustafson
638e2f1046 fix oauth2client bug in mapping 2018-02-08 10:10:54 -08:00
yonatanp
a7ad636dab
bugfix: f.close() only required if open succeeded
when open fails, instead of raising the original error, the "f.close()" was erroring in the final clause.
2018-01-05 11:33:47 +02:00
Jon Banafato
5707a39df6
Merge pull request #101 from jonafato/unified-output-function
Consolidate logic for writing to a file and to stdout
2017-11-16 13:47:03 -05:00
Jon Banafato
51446ac2be
Merge pull request #104 from jonafato/changelog-dates
Add dates to recent changelog entries
2017-10-31 15:26:40 -04:00
Jon Banafato
52505ce32c Add dates to recent changelog entries
Via https://pypi.python.org/pypi/pipreqs/json
2017-10-31 15:18:45 -04:00
Jon Banafato
800abc43e3 Merge pull request #95 from jonafato/cleanup-get_all_imports
Clean up set and file usage in get_all_imports
2017-10-26 17:03:17 -04:00
Jon Banafato
aae6c61f09 Clean up set and file usage in get_all_imports
- Move logic that doesn't need to be inside of file context managers
  outside
- Remove redundant `set` and `list` function calls
2017-10-26 16:36:12 -04:00
Jon Banafato
7afbcb4b16 Merge pull request #102 from jonafato/cleanup-get_pkg_names
Simplify get_pkg_names function
2017-10-26 16:33:31 -04:00
Jon Banafato
84b2e37707 Simplify get_pkg_names function
- Hoist non-file-reading logic outside of the file context manager
- Use a dict instead of a list for faster / more Pythonic lookups
- Use a set to simplify the add / append logic
- Move import sorting from `get_all_imports` to `get_pkg_names` for
  to account for set ordering. This change may also affect #89.
- Add a docstring
2017-10-26 12:16:32 -04:00
Jon Banafato
4b2ad2dc41 [WIP] Consolidate logic for writing to a file and to stdout 2017-10-24 16:58:35 -04:00
Jon Banafato
e0f9ae8c6a Merge pull request #99 from jonafato/flake8
Flake8
2017-10-24 15:17:53 -04:00
Jon Banafato
e88b5ab19c Fix flake8 errors 2017-10-24 15:14:58 -04:00
Jon Banafato
d1a7eda5e8 Enable flake8 linting in tox.ini and .travis.yml
Currently, flake8 is accessible via `make lint`, but it does not run
along side the rest of the test suite. This change adds flake8 checks to
the tox.ini file to enable linting as a routine part of running tests.

Additionally, drop the changes made in #100.
2017-10-24 15:14:52 -04:00
Jon Banafato
1d48345cb0 Merge pull request #100 from jonafato/tox-on-travis
Run Travis-CI tests inside of tox
2017-10-24 14:20:31 -04:00
Jon Banafato
0a9845d87d Run Travis-CI tests inside of tox
By using tox instead of the default Travis-CI Python environments, we
ensure that we have a single entrypoint to testing both locally and in
CI. This reduces redundant code and makes it clear when test
environments don't match up on different platforms.

[tox-travis](https://tox-travis.readthedocs.io/en/stable/) is introduced
here to automatically run tox jobs under the proper Travis-CI
environments. Additionally, the coveralls step is moved to a [build
stage](https://docs.travis-ci.com/user/build-stages) to run once after
all other Travis-CI tests complete.
2017-10-24 14:08:18 -04:00
Jon Banafato
08160bdf95 Merge pull request #97 from jonafato/optional-path
Support optional <path> argument
2017-10-23 23:34:07 -04:00
Jon Banafato
c80d06593d Support optional <path> argument
This change makes the <path> argument optional, defaulting to the
current working directory if omitted.

---

Ideally, this would have been accomplished via docopt, but optional
positional arguments with defaults are not supported at the moment [1, 2].

[1] https://github.com/docopt/docopt/issues/214
[2] https://github.com/docopt/docopt/issues/329
2017-10-22 23:45:16 -04:00
Jon Banafato
755e20196a Merge pull request #85 from zmwangx/correct-arrow-mapping
fix(pipreqs/mapping): correct arrow mapping
2017-10-21 14:13:38 -04:00