209 Commits

Author SHA1 Message Date
mateuslatrova
4a9176b39a add support for .pyw files
Now, pipreqs will also scan imports in .pyw files by default.
2023-12-06 20:11:57 +00:00
fernandocrz
b50b4a76eb Add support for jupyter notebooks
Credits to @pakio and @mateuslatrova for the contributions
2023-12-05 18:15:54 +00:00
fernandocrz
aa283ada00 define pipreqs default encoding to utf-8 2023-12-05 18:15:54 +00:00
mateuslatrova
368e9ae7e7 handle FileNotFoundError in parse_requirements function 2023-10-20 08:59:50 -03:00
mateuslatrova
6ac4357cf4 fix return type on docs 2023-09-28 20:36:24 -03:00
mateuslatrova
d56d5feb29 delete unused function "filter_line" 2023-09-28 20:36:24 -03:00
Vadim Kravcenko
a1f83d27d9 Bump Version to 0.4.13 2023-04-14 09:08:49 +02:00
Vadim Kravcenko
181525cdea
Merge pull request #304 from Marocco2/patch-1
Mapping Telegram to python-telegram-bot
2023-04-13 20:39:56 +02:00
Vadim Kravcenko
f9f9d53620
Merge pull request #335 from mmngreco/patch-1
enh: include airflow mapping
2023-04-13 20:38:32 +02:00
Vadim Kravcenko
717d4926bc
Merge pull request #364 from adeadfed/master
Mitigation for dependency confusion in pipreqs
2023-04-13 20:38:09 +02:00
adeadfed
2103371746 add whitespaces to pep8 formatted strings 2023-04-13 16:05:50 +02:00
adeadfed
5537bcd217 fix pep8 linting issues 2023-04-13 15:59:50 +02:00
Vadim Kravcenko
96440ac2ff
Merge pull request #343 from Alexander-Wilms/master
Add mapping for python-constraint
2023-04-13 14:32:32 +02:00
Vadim Kravcenko
4c380a9661
Merge pull request #349 from hansvana/patch-1
Update mapping socketio to python-socketio
2023-04-13 14:27:26 +02:00
adeadfed
3ae82087f9 remove invalid comment 2023-03-29 00:32:00 +02:00
adeadfed
50498d3cd4 change warning messages 2023-03-29 00:27:13 +02:00
adeadfed
da442e7a2a add warnings to for remote resolving mode 2023-03-29 00:25:45 +02:00
adeadfed
6cd9925a31 improved version of local package resolving 2023-03-29 00:17:49 +02:00
adeadfed
3f5964fcb9 fix name resolution for local packages 2023-03-14 21:14:19 +01:00
bskiefer
175524ec24
Update mapping for python-slugify 2023-02-06 10:51:09 -06:00
hansvana
5cdc966b2e
Update mapping socketio to python-socketio
Originally mapped to gevent-socketio, which is outdated and hasn't been updated since 2016. Anyone importing socketio is much more likely to mean python-socketio now.
2023-01-13 11:15:15 +01:00
clvnkhr
f97d8b9ba4 resolve issue #285
simply moved the check in init for requirements.txt ahead of searching for packages. Closes #285. Passes tox (3.7, 3.8, 3.9, pypy3, flake8)
2023-01-05 15:06:39 +08:00
Alexander Wilms
775681975a
Add mapping for python-constraint 2023-01-02 22:42:27 +01:00
Maximiliano Greco
0aa3f80b84
enh: include airflow mapping
closes https://github.com/bndr/pipreqs/issues/179
2022-11-17 13:25:49 +01:00
Marocco2
2a26eadc91
Mapping Telegram to python-telegram-bot
telegram is a hollow pypi package, so pipreqs will try to install that instead of python-telegram-bot, which have a module named telegram.
I'll ask to approve this change, as I'm blocked with my Pipedream workflow.
2022-04-10 09:49:12 +00:00
Alan Barzilay
23097b102c Version bump to 0.4.11 2021-10-23 05:54:58 -03:00
Rahul Kumaresan
9e514a4caa update README and pipreqs docstring to help prevent discripancies 2021-09-04 15:14:48 -03:00
alan-barzilay
30a944cdda Bump python version
Bump tests version and supported versions in setup.py

stdlib: update packages for python 3.9

By utilizing the packages listed in
https://github.com/jackmaney/python-stdlib-list
for python 3.8 and 3.9, we were able to drop all stdlib packages that
existed solely in python 2 and add the missing stdlib python 3 packages
2021-09-04 15:14:48 -03:00
alan-barzilay
65ccd7eca3 delete everything related to python2
We are dropping support for python 2, so we are dropping the
verification of which python version is currently running and we also stop
checking for python2 specific packages.
We also drop the encoding definition since python3 uses utf-8 as
default.
The helper open_func function is also substituted by open.
2021-09-04 15:14:48 -03:00
Alan Barzilay
8001001e9c Revert "Revert all commits since last release"
This reverts commit 90102acdbb23c09574d27df8bd1f568d34e0cfd3.
Now that we are ready to make a new release we can revert the revert and
hopefuly never have to solve a mess like this again to keep master
synchronized with the latest release
2021-09-04 15:12:27 -03:00
alan-barzilay
90102acdbb Revert all commits since last release
By reverting all commits done since release v0.4.10 we will have the
master branch synchronized with the latest release available in pipy.

All commits done since the latest release will be moved to another
branch called `next` where we will centralize development. Once we are ready
for a new release of pipreqs, the `next` branch will be merged back on to
master and a new release will be made.

This change will make development more organized and will avoid new
issues from users complaining about features only present in master not working
on their installation of pipreqs.

I would also like to thank @pedroteosousa for his help on reverting and
squashing all commits
2021-05-05 02:08:31 -03:00
Alan Barzilay
2a299cc7bc
Merge pull request #245 from komodovaran/patch-1
Update stdlib with dataclasses
2021-05-03 21:36:36 -03:00
Alan Barzilay
e432bb1999
Merge pull request #249 from LionyxML/patch-1
De-capitalize "Requirements.txt" in log msg
2021-05-03 21:35:48 -03:00
Alan Barzilay
df8aab7609
Merge pull request #247 from sxooler/sxooler/patch-hydra
Add hydra-core mapping
2021-04-30 23:45:52 -03:00
Paul
4dd2c0916d
Added secrets to standard libraries file
Is new in Python 3.6+
2021-04-27 20:40:26 +02:00
Rahul M. Juliato
b188c8ba83
Decaptalized file name in log msg
When trying to generate requirements.txt and file is already existent, the user message produced asks for "Requirements.txt" instead of "requirements.txt". 
This may cause some trouble when used in case sensitive env, as well as in automated scripts.
2021-04-26 12:05:41 -03:00
Simon Ondracek
537458f2df Add hydra-core mapping
Maps `hydra` to `hydra-core`. Fixes #244.
2021-04-21 13:22:46 +02:00
Johannes Thomsen
bab012b491
Update stdlib with dataclasses
Part of the standard lib since 3.7: https://docs.python.org/3.7/library/dataclasses.html
2021-04-20 16:32:54 +02:00
Jake
5dc02aa2fa remove obsolete '==' 2021-03-29 22:16:45 +08:00
Jake
e5924d14b3 resolve conflicts; update new features 2021-03-29 22:13:19 +08:00
Jake
22fefca900 merged from origin 2021-03-29 21:48:44 +08:00
Siyang
69a884a4c4 changes based on discussions w maintainer 2021-03-29 21:35:34 +08:00
ryan-rozario
c7c91fcabe Mapping for github3 2021-03-26 23:56:20 +04:00
Alan Barzilay
1149429ab6
Merge pull request #195 from AlexPHorta/bugfix/issue88
Bugfix/issue88
2021-03-26 14:19:07 -03: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
Alan Barzilay
0449fa8341
Merge branch 'master' into mysql-python 2021-03-23 21:50:03 -03:00
Alan Barzilay
b56bbe976f
Merge pull request #201 from PatMyron/patch-1
mapping aws-sam-translator
2021-03-23 21:40:24 -03:00
Alan Barzilay
27f9ca7ee8
Merge pull request #205 from toanant/patch-1
Imports are now sorted based on lowercase package's name, similar to pip freeze.
2021-03-23 21:33:05 -03:00
Alan Barzilay
e06a850883
Merge pull request #220 from 36000/36000-pyAFQ-1
Add pyAFQ Mapping
2021-03-23 21:24:55 -03:00
Alan Barzilay
112e2b6bdc
Merge pull request #224 from pkalemba/patch-1
Add discord mapping/ Sort mapping file
2021-03-23 21:22:52 -03:00