Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipenv requirements / pipenv lock --requirements loses "name@" prefix #5432

Open
glensc opened this issue Oct 23, 2022 · 13 comments
Open

pipenv requirements / pipenv lock --requirements loses "name@" prefix #5432

glensc opened this issue Oct 23, 2022 · 13 comments
Assignees
Labels
Status: Awaiting Update ⏳ This issue requires more information before assistance can be provided. triage Type: Possible Bug This issue describes a possible bug in pipenv.

Comments

@glensc
Copy link

glensc commented Oct 23, 2022

Issue description

I'm adding dependency using "Direct URL dependencies":

pipenv install "trakt@https://github.com/glensc/python-trakt/archive/refs/tags/3.4.1.zip#egg=trakt"

this results in an entry to Pipfile:

[packages]
trakt = {file = "https://github.com/glensc/python-trakt/archive/refs/tags/3.4.1.zip"}

and Pipfile.lock:

        "trakt": {
            "file": "https://github.com/glensc/python-trakt/archive/refs/tags/3.4.1.zip",
            "version": "==3.4.1"
        },

so far so good.

now to sync requirements.txt the line needs to be:

trakt@https://github.com/glensc/python-trakt/archive/refs/tags/3.4.1.zip#egg=trakt

but sync command puts only URL there:

https://github.com/glensc/python-trakt/archive/refs/tags/3.4.1.zip

(optional) for extra information, why the requirements line must be like that, you can read in this thread:

(optional) and why installing this way:

Expected result

requirements.txt line must retain "name@" for pip to install from it.

Actual result

requirements.txt file with just URL will result pip parse error, which means it must be manually edited before publishing the change

Steps to replicate

The steps are listed in description block.

If needed the repository with the test can be browsed at:


$ pipenv --support

Pipenv version: '2022.9.24'

Pipenv location: '/usr/local/Cellar/pipenv/2022.9.24/libexec/lib/python3.10/site-packages/pipenv'

Python location: '/usr/local/Cellar/pipenv/2022.9.24/libexec/bin/python3.10'

OS Name: 'posix'

User pip version: '22.2.2'

user Python installations found:

  • 3.10.8: /Users/glen/MegaSync/scm/plex/PlexTraktSync/.direnv/python-3.10.8/bin/python3
  • 3.10.8: /Users/glen/MegaSync/scm/plex/PlexTraktSync/.direnv/python-3.10.8/bin/python
  • 3.10.8: /Users/glen/MegaSync/scm/plex/PlexTraktSync/.direnv/python-3.10.8/bin/python3
  • 3.10.8: /Users/glen/MegaSync/scm/plex/PlexTraktSync/.direnv/python-3.10.8/bin/python
  • 3.10.8: /usr/local/opt/python@3.10/bin/python3
  • 3.10.8: /usr/local/bin/python3
  • 3.9.15: /usr/local/bin/python3.9
  • 3.8.15: /usr/local/bin/python3.8
  • 3.8.2: /usr/bin/python3
  • 2.7.17: /usr/local/opt/python@2/bin/python
  • 2.7.17: /usr/local/opt/python@2/bin/python2
  • 2.7.17: /usr/local/opt/python@2/bin/python2.7
  • 2.7.17: /usr/local/bin/python
  • 2.7.17: /usr/local/bin/python2
  • 2.7.17: /usr/local/bin/python2.7
  • 2.7.16: /usr/bin/python
  • 2.7.16: /usr/bin/python2
  • 2.7.16: /usr/bin/python2.7

PEP 508 Information:

{'implementation_name': 'cpython',
 'implementation_version': '3.10.8',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '19.6.0',
 'platform_system': 'Darwin',
 'platform_version': 'Darwin Kernel Version 19.6.0: Tue Jun 21 21:18:39 PDT '
                     '2022; root:xnu-6153.141.66~1/RELEASE_X86_64',
 'python_full_version': '3.10.8',
 'python_version': '3.10',
 'sys_platform': 'darwin'}

System environment variables:

  • PATH
  • GREP_COLOR
  • STARSHIP_SHELL
  • MANPATH
  • TERM_PROGRAM
  • HOSTNAME
  • GEM_HOME
  • HOST
  • TERM
  • PIPENV_VERBOSITY
  • SHELL
  • HISTSIZE
  • TMPDIR
  • PERL5LIB
  • DIRENV_DIR
  • TERM_PROGRAM_VERSION
  • GIT_HOSTING
  • HOMEBREW_AUTO_UPDATE_SECS
  • PLEX_PASSWORD
  • PERL_MB_OPT
  • TERM_SESSION_ID
  • GITHUB_API_TOKEN
  • PLEX_BASEURL
  • HISTFILESIZE
  • USER
  • MPD_HOST
  • TITLE
  • COMMAND_MODE
  • RBENV_ROOT
  • BASH_IT_THEME
  • SCM_CHECK
  • VERSION_CONTROL
  • SSH_AUTH_SOCK
  • __CF_USER_TEXT_ENCODING
  • AUTOFEATURE
  • VIRTUAL_ENV
  • SCREENDIR
  • DIRENV_WATCHES
  • BASH_IT
  • TRAKT_API_KEY
  • LSCOLORS
  • DBPOOL_INIDIR
  • COMPOSE_DOCKER_CLI_BUILD
  • SYSSCREENRC
  • _
  • LaunchInstanceID
  • TTY
  • PWD
  • HOMEBREW_GITHUB_API_TOKEN
  • FZF_ALT_C_COMMAND
  • EDITOR
  • LANG
  • ITERM_PROFILE
  • PYPI_TOKEN
  • XPC_FLAGS
  • PASSWORD_STORE_DIR
  • PLEX_USERNAME
  • XPC_SERVICE_NAME
  • DOCKER_BUILDKIT
  • DIRENV_FILE
  • HISTCONTROL
  • TRAKT_AUTHORIZATION
  • SHLVL
  • COLORFGBG
  • HOME
  • TQDM_TELEGRAM_CHAT_ID
  • DEV_ENV
  • LESS_ADVANCED_PREPROCESSOR
  • LC_TERMINAL_VERSION
  • HOMEBREW_PREFIX
  • PERL_LOCAL_LIB_ROOT
  • ITERM_SESSION_ID
  • STARSHIP_SESSION_KEY
  • LOGNAME
  • VISUAL
  • LC_CTYPE
  • GEM_PATH
  • LESSOPEN
  • BYOBU_PREFIX
  • TODO
  • DISPLAY
  • IRC_CLIENT
  • LC_TERMINAL
  • TQDM_TELEGRAM_TOKEN
  • DIRENV_DIFF
  • LC_TIME
  • SECURITYSESSIONID
  • PERL_MM_OPT
  • COLORTERM
  • PIP_DISABLE_PIP_VERSION_CHECK
  • PIP_PYTHON_PATH
  • PYTHONDONTWRITEBYTECODE
  • PLEX_TOKEN
  • PLEX_SERVER
  • PLEX_FALLBACKURL
  • TRAKT_USERNAME
  • PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:

  • PIPENV_VERBOSITY: -1

Debug–specific environment variables:

  • PATH: /usr/local/Cellar/pipenv/2022.9.24/libexec/tools:/Users/glen/MegaSync/scm/plex/PlexTraktSync/.direnv/python-3.10.8/bin:/Users/glen/MegaSync/scm/plex/PlexTraktSync/.direnv/python-3.10.8/bin:/Users/glen/perl5/bin:/usr/local/opt/openjdk/bin:/usr/local/opt/make/libexec/gnubin:/usr/local/opt/python@2/bin:/usr/local/opt/python@3.10/bin:/usr/local/opt/gnu-tar/libexec/gnubin:/usr/local/opt/gnu-sed/libexec/gnubin:/usr/local/opt/gnu-getopt/bin:/usr/local/opt/gettext/bin:/usr/local/opt/findutils/libexec/gnubin:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/gems/bin:/Users/glen/go/bin:/Users/glen/.local/bin:/usr/local/sbin:/Users/glen/.composer/vendor/bin:/Users/glen/.local/npm/bin:/Users/glen/Dropbox/bin:/Users/glen/Dropbox/Linux/config/bin:/Users/glen/.composer/vendor/bin:/Users/glen/.local/bin/phars/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/games:/Users/glen/scm/glen/okas/bin:/usr/local/opt/fzf/bin:/Users/glen/.krew/bin
  • SHELL: /usr/local/bin/bash
  • EDITOR: /usr/local/bin/nvim
  • LANG: en_US.UTF-8
  • PWD: /Users/glen/scm/plex/PlexTraktSync
  • VIRTUAL_ENV: /Users/glen/MegaSync/scm/plex/PlexTraktSync/.direnv/python-3.10.8

Contents of Pipfile ('/Users/glen/MegaSync/scm/plex/PlexTraktSync/Pipfile'):

[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
appdirs = "==1.4.4"
certifi = "==2022.9.24"
click = "==8.1.3"
deprecated = "==1.2.13"
inquirerpy = "==0.3.4"
oauthlib = "==3.2.2"
plexapi = "==4.13.0"
python-dotenv = "==0.21.0"
python-git-info = "==0.8.0"
pyyaml = "==6.0"
requests = ">=2.25.1"
requests-cache = "==0.9.6"
rich = "==12.6.0"
tqdm = "==4.64.1"
urllib3 = ">=1.26.6"
websocket-client = "==1.4.1"
trakt = {file = "https://github.com/glensc/python-trakt/archive/refs/tags/3.4.1.zip"}

[requires]
python_version = "3"

[scripts]
plextraktsync = "python -m plextraktsync"

Contents of Pipfile.lock ('/Users/glen/MegaSync/scm/plex/PlexTraktSync/Pipfile.lock'):

{
    "_meta": {
        "hash": {
            "sha256": "65209004aad91c1f9817dcfe9f2f79836b10798294eb6ddf2dbeb7815073b78c"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "appdirs": {
            "hashes": [
                "sha256:7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41",
                "sha256:a841dacd6b99318a741b166adb07e19ee71a274450e68237b4650ca1055ab128"
            ],
            "index": "pypi",
            "version": "==1.4.4"
        },
        "attrs": {
            "hashes": [
                "sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6",
                "sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c"
            ],
            "markers": "python_version >= '3.5'",
            "version": "==22.1.0"
        },
        "cattrs": {
            "hashes": [
                "sha256:bc12b1f0d000b9f9bee83335887d532a1d3e99a833d1bf0882151c97d3e68c21",
                "sha256:f0eed5642399423cf656e7b66ce92cdc5b963ecafd041d1b24d136fdde7acf6d"
            ],
            "markers": "python_version >= '3.7'",
            "version": "==22.2.0"
        },
        "certifi": {
            "hashes": [
                "sha256:0d9c601124e5a6ba9712dbc60d9c53c21e34f5f641fe83002317394311bdce14",
                "sha256:90c1a32f1d68f940488354e36370f6cca89f0f106db09518524c88d6ed83f382"
            ],
            "index": "pypi",
            "version": "==2022.9.24"
        },
        "charset-normalizer": {
            "hashes": [
                "sha256:5a3d016c7c547f69d6f81fb0db9449ce888b418b5b9952cc5e6e66843e9dd845",
                "sha256:83e9a75d1911279afd89352c68b45348559d1fc0506b054b346651b5e7fee29f"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==2.1.1"
        },
        "click": {
            "hashes": [
                "sha256:7682dc8afb30297001674575ea00d1814d808d6a36af415a82bd481d37ba7b8e",
                "sha256:bb4d8133cb15a609f44e8213d9b391b0809795062913b383c62be0ee95b1db48"
            ],
            "index": "pypi",
            "version": "==8.1.3"
        },
        "commonmark": {
            "hashes": [
                "sha256:452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60",
                "sha256:da2f38c92590f83de410ba1a3cbceafbc74fee9def35f9251ba9a971d6d66fd9"
            ],
            "version": "==0.9.1"
        },
        "deprecated": {
            "hashes": [
                "sha256:43ac5335da90c31c24ba028af536a91d41d53f9e6901ddb021bcc572ce44e38d",
                "sha256:64756e3e14c8c5eea9795d93c524551432a0be75629f8f29e67ab8caf076c76d"
            ],
            "index": "pypi",
            "version": "==1.2.13"
        },
        "exceptiongroup": {
            "hashes": [
                "sha256:2e3c3fc1538a094aab74fad52d6c33fc94de3dfee3ee01f187c0e0c72aec5337",
                "sha256:9086a4a21ef9b31c72181c77c040a074ba0889ee56a7b289ff0afb0d97655f96"
            ],
            "markers": "python_version < '3.11'",
            "version": "==1.0.0rc9"
        },
        "idna": {
            "hashes": [
                "sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4",
                "sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"
            ],
            "markers": "python_version >= '3.5'",
            "version": "==3.4"
        },
        "inquirerpy": {
            "hashes": [
                "sha256:89d2ada0111f337483cb41ae31073108b2ec1e618a49d7110b0d7ade89fc197e",
                "sha256:c65fdfbac1fa00e3ee4fb10679f4d3ed7a012abf4833910e63c295827fe2a7d4"
            ],
            "index": "pypi",
            "version": "==0.3.4"
        },
        "oauthlib": {
            "hashes": [
                "sha256:8139f29aac13e25d502680e9e19963e83f16838d48a0d71c287fe40e7067fbca",
                "sha256:9859c40929662bec5d64f34d01c99e093149682a3f38915dc0655d5a633dd918"
            ],
            "index": "pypi",
            "version": "==3.2.2"
        },
        "pfzy": {
            "hashes": [
                "sha256:5f50d5b2b3207fa72e7ec0ef08372ef652685470974a107d0d4999fc5a903a96",
                "sha256:717ea765dd10b63618e7298b2d98efd819e0b30cd5905c9707223dceeb94b3f1"
            ],
            "markers": "python_version >= '3.7' and python_version < '4'",
            "version": "==0.3.4"
        },
        "plexapi": {
            "hashes": [
                "sha256:4d442caaecf58fe6abd962b6ca24627387b031c17b84e9d063a75f05abf5684b",
                "sha256:86e92cdb2fa6f38f7c518ef42144cd5276a69b083d0df95e9a9fede881e1fa83"
            ],
            "index": "pypi",
            "version": "==4.13.0"
        },
        "prompt-toolkit": {
            "hashes": [
                "sha256:9696f386133df0fc8ca5af4895afe5d78f5fcfe5258111c2a79a1c3e41ffa96d",
                "sha256:9ada952c9d1787f52ff6d5f3484d0b4df8952787c087edf6a1f7c2cb1ea88148"
            ],
            "markers": "python_full_version >= '3.6.2'",
            "version": "==3.0.31"
        },
        "pygments": {
            "hashes": [
                "sha256:56a8508ae95f98e2b9bdf93a6be5ae3f7d8af858b43e02c5a2ff083726be40c1",
                "sha256:f643f331ab57ba3c9d89212ee4a2dabc6e94f117cf4eefde99a0574720d14c42"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==2.13.0"
        },
        "python-dotenv": {
            "hashes": [
                "sha256:1684eb44636dd462b66c3ee016599815514527ad99965de77f43e0944634a7e5",
                "sha256:b77d08274639e3d34145dfa6c7008e66df0f04b7be7a75fd0d5292c191d79045"
            ],
            "index": "pypi",
            "version": "==0.21.0"
        },
        "python-git-info": {
            "hashes": [
                "sha256:1d6f88b620b83b55cbe4e4107e93cc34b1d51e86a3d2574ebc9397539532d92f",
                "sha256:c119d7361b192ff32bde1256b3426c6902a7fd5078216c0e210bca4855800cd8"
            ],
            "index": "pypi",
            "version": "==0.8.0"
        },
        "pyyaml": {
            "hashes": [
                "sha256:01b45c0191e6d66c470b6cf1b9531a771a83c1c4208272ead47a3ae4f2f603bf",
                "sha256:0283c35a6a9fbf047493e3a0ce8d79ef5030852c51e9d911a27badfde0605293",
                "sha256:055d937d65826939cb044fc8c9b08889e8c743fdc6a32b33e2390f66013e449b",
                "sha256:07751360502caac1c067a8132d150cf3d61339af5691fe9e87803040dbc5db57",
                "sha256:0b4624f379dab24d3725ffde76559cff63d9ec94e1736b556dacdfebe5ab6d4b",
                "sha256:0ce82d761c532fe4ec3f87fc45688bdd3a4c1dc5e0b4a19814b9009a29baefd4",
                "sha256:1e4747bc279b4f613a09eb64bba2ba602d8a6664c6ce6396a4d0cd413a50ce07",
                "sha256:213c60cd50106436cc818accf5baa1aba61c0189ff610f64f4a3e8c6726218ba",
                "sha256:231710d57adfd809ef5d34183b8ed1eeae3f76459c18fb4a0b373ad56bedcdd9",
                "sha256:277a0ef2981ca40581a47093e9e2d13b3f1fbbeffae064c1d21bfceba2030287",
                "sha256:2cd5df3de48857ed0544b34e2d40e9fac445930039f3cfe4bcc592a1f836d513",
                "sha256:40527857252b61eacd1d9af500c3337ba8deb8fc298940291486c465c8b46ec0",
                "sha256:432557aa2c09802be39460360ddffd48156e30721f5e8d917f01d31694216782",
                "sha256:473f9edb243cb1935ab5a084eb238d842fb8f404ed2193a915d1784b5a6b5fc0",
                "sha256:48c346915c114f5fdb3ead70312bd042a953a8ce5c7106d5bfb1a5254e47da92",
                "sha256:50602afada6d6cbfad699b0c7bb50d5ccffa7e46a3d738092afddc1f9758427f",
                "sha256:68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2",
                "sha256:77f396e6ef4c73fdc33a9157446466f1cff553d979bd00ecb64385760c6babdc",
                "sha256:81957921f441d50af23654aa6c5e5eaf9b06aba7f0a19c18a538dc7ef291c5a1",
                "sha256:819b3830a1543db06c4d4b865e70ded25be52a2e0631ccd2f6a47a2822f2fd7c",
                "sha256:897b80890765f037df3403d22bab41627ca8811ae55e9a722fd0392850ec4d86",
                "sha256:98c4d36e99714e55cfbaaee6dd5badbc9a1ec339ebfc3b1f52e293aee6bb71a4",
                "sha256:9df7ed3b3d2e0ecfe09e14741b857df43adb5a3ddadc919a2d94fbdf78fea53c",
                "sha256:9fa600030013c4de8165339db93d182b9431076eb98eb40ee068700c9c813e34",
                "sha256:a80a78046a72361de73f8f395f1f1e49f956c6be882eed58505a15f3e430962b",
                "sha256:afa17f5bc4d1b10afd4466fd3a44dc0e245382deca5b3c353d8b757f9e3ecb8d",
                "sha256:b3d267842bf12586ba6c734f89d1f5b871df0273157918b0ccefa29deb05c21c",
                "sha256:b5b9eccad747aabaaffbc6064800670f0c297e52c12754eb1d976c57e4f74dcb",
                "sha256:bfaef573a63ba8923503d27530362590ff4f576c626d86a9fed95822a8255fd7",
                "sha256:c5687b8d43cf58545ade1fe3e055f70eac7a5a1a0bf42824308d868289a95737",
                "sha256:cba8c411ef271aa037d7357a2bc8f9ee8b58b9965831d9e51baf703280dc73d3",
                "sha256:d15a181d1ecd0d4270dc32edb46f7cb7733c7c508857278d3d378d14d606db2d",
                "sha256:d4b0ba9512519522b118090257be113b9468d804b19d63c71dbcf4a48fa32358",
                "sha256:d4db7c7aef085872ef65a8fd7d6d09a14ae91f691dec3e87ee5ee0539d516f53",
                "sha256:d4eccecf9adf6fbcc6861a38015c2a64f38b9d94838ac1810a9023a0609e1b78",
                "sha256:d67d839ede4ed1b28a4e8909735fc992a923cdb84e618544973d7dfc71540803",
                "sha256:daf496c58a8c52083df09b80c860005194014c3698698d1a57cbcfa182142a3a",
                "sha256:dbad0e9d368bb989f4515da330b88a057617d16b6a8245084f1b05400f24609f",
                "sha256:e61ceaab6f49fb8bdfaa0f92c4b57bcfbea54c09277b1b4f7ac376bfb7a7c174",
                "sha256:f84fbc98b019fef2ee9a1cb3ce93e3187a6df0b2538a651bfb890254ba9f90b5"
            ],
            "index": "pypi",
            "version": "==6.0"
        },
        "requests": {
            "hashes": [
                "sha256:7c5599b102feddaa661c826c56ab4fee28bfd17f5abca1ebbe3e7f19d7c97983",
                "sha256:8fefa2a1a1365bf5520aac41836fbee479da67864514bdb821f31ce07ce65349"
            ],
            "index": "pypi",
            "version": "==2.28.1"
        },
        "requests-cache": {
            "hashes": [
                "sha256:7397c0effb7e824c21e3f9fca8293cad01eb40152be67e53093f5399acd2d251",
                "sha256:b1672c99ccce9ee53b49504c9f6a6d6de5cf6a9956bda46cf7dda0a4a5fc1bb5"
            ],
            "index": "pypi",
            "version": "==0.9.6"
        },
        "requests-oauthlib": {
            "hashes": [
                "sha256:2577c501a2fb8d05a304c09d090d6e47c306fef15809d102b327cf8364bddab5",
                "sha256:75beac4a47881eeb94d5ea5d6ad31ef88856affe2332b9aafb52c6452ccf0d7a"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
            "version": "==1.3.1"
        },
        "rich": {
            "hashes": [
                "sha256:a4eb26484f2c82589bd9a17c73d32a010b1e29d89f1604cd9bf3a2097b81bb5e",
                "sha256:ba3a3775974105c221d31141f2c116f4fd65c5ceb0698657a11e9f295ec93fd0"
            ],
            "index": "pypi",
            "version": "==12.6.0"
        },
        "six": {
            "hashes": [
                "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926",
                "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
            "version": "==1.16.0"
        },
        "tqdm": {
            "hashes": [
                "sha256:5f4f682a004951c1b450bc753c710e9280c5746ce6ffedee253ddbcbf54cf1e4",
                "sha256:6fee160d6ffcd1b1c68c65f14c829c22832bc401726335ce92c52d395944a6a1"
            ],
            "index": "pypi",
            "version": "==4.64.1"
        },
        "trakt": {
            "file": "https://github.com/glensc/python-trakt/archive/refs/tags/3.4.1.zip",
            "version": "==3.4.1"
        },
        "url-normalize": {
            "hashes": [
                "sha256:d23d3a070ac52a67b83a1c59a0e68f8608d1cd538783b401bc9de2c0fac999b2",
                "sha256:ec3c301f04e5bb676d333a7fa162fa977ad2ca04b7e652bfc9fac4e405728eed"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'",
            "version": "==1.4.3"
        },
        "urllib3": {
            "hashes": [
                "sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e",
                "sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997"
            ],
            "index": "pypi",
            "version": "==1.26.12"
        },
        "wcwidth": {
            "hashes": [
                "sha256:beb4802a9cebb9144e99086eff703a642a13d6a0052920003a230f3294bbe784",
                "sha256:c4d647b99872929fdb7bdcaa4fbe7f01413ed3d98077df798530e5b04f116c83"
            ],
            "version": "==0.2.5"
        },
        "websocket-client": {
            "hashes": [
                "sha256:398909eb7e261f44b8f4bd474785b6ec5f5b499d4953342fe9755e01ef624090",
                "sha256:f9611eb65c8241a67fb373bef040b3cf8ad377a9f6546a12b620b6511e8ea9ef"
            ],
            "index": "pypi",
            "version": "==1.4.1"
        },
        "wrapt": {
            "hashes": [
                "sha256:00b6d4ea20a906c0ca56d84f93065b398ab74b927a7a3dbd470f6fc503f95dc3",
                "sha256:01c205616a89d09827986bc4e859bcabd64f5a0662a7fe95e0d359424e0e071b",
                "sha256:02b41b633c6261feff8ddd8d11c711df6842aba629fdd3da10249a53211a72c4",
                "sha256:07f7a7d0f388028b2df1d916e94bbb40624c59b48ecc6cbc232546706fac74c2",
                "sha256:11871514607b15cfeb87c547a49bca19fde402f32e2b1c24a632506c0a756656",
                "sha256:1b376b3f4896e7930f1f772ac4b064ac12598d1c38d04907e696cc4d794b43d3",
                "sha256:21ac0156c4b089b330b7666db40feee30a5d52634cc4560e1905d6529a3897ff",
                "sha256:257fd78c513e0fb5cdbe058c27a0624c9884e735bbd131935fd49e9fe719d310",
                "sha256:2b39d38039a1fdad98c87279b48bc5dce2c0ca0d73483b12cb72aa9609278e8a",
                "sha256:2cf71233a0ed05ccdabe209c606fe0bac7379fdcf687f39b944420d2a09fdb57",
                "sha256:2fe803deacd09a233e4762a1adcea5db5d31e6be577a43352936179d14d90069",
                "sha256:3232822c7d98d23895ccc443bbdf57c7412c5a65996c30442ebe6ed3df335383",
                "sha256:34aa51c45f28ba7f12accd624225e2b1e5a3a45206aa191f6f9aac931d9d56fe",
                "sha256:36f582d0c6bc99d5f39cd3ac2a9062e57f3cf606ade29a0a0d6b323462f4dd87",
                "sha256:380a85cf89e0e69b7cfbe2ea9f765f004ff419f34194018a6827ac0e3edfed4d",
                "sha256:40e7bc81c9e2b2734ea4bc1aceb8a8f0ceaac7c5299bc5d69e37c44d9081d43b",
                "sha256:43ca3bbbe97af00f49efb06e352eae40434ca9d915906f77def219b88e85d907",
                "sha256:4fcc4649dc762cddacd193e6b55bc02edca674067f5f98166d7713b193932b7f",
                "sha256:5a0f54ce2c092aaf439813735584b9537cad479575a09892b8352fea5e988dc0",
                "sha256:5a9a0d155deafd9448baff28c08e150d9b24ff010e899311ddd63c45c2445e28",
                "sha256:5b02d65b9ccf0ef6c34cba6cf5bf2aab1bb2f49c6090bafeecc9cd81ad4ea1c1",
                "sha256:60db23fa423575eeb65ea430cee741acb7c26a1365d103f7b0f6ec412b893853",
                "sha256:642c2e7a804fcf18c222e1060df25fc210b9c58db7c91416fb055897fc27e8cc",
                "sha256:6a9a25751acb379b466ff6be78a315e2b439d4c94c1e99cb7266d40a537995d3",
                "sha256:6b1a564e6cb69922c7fe3a678b9f9a3c54e72b469875aa8018f18b4d1dd1adf3",
                "sha256:6d323e1554b3d22cfc03cd3243b5bb815a51f5249fdcbb86fda4bf62bab9e164",
                "sha256:6e743de5e9c3d1b7185870f480587b75b1cb604832e380d64f9504a0535912d1",
                "sha256:709fe01086a55cf79d20f741f39325018f4df051ef39fe921b1ebe780a66184c",
                "sha256:7b7c050ae976e286906dd3f26009e117eb000fb2cf3533398c5ad9ccc86867b1",
                "sha256:7d2872609603cb35ca513d7404a94d6d608fc13211563571117046c9d2bcc3d7",
                "sha256:7ef58fb89674095bfc57c4069e95d7a31cfdc0939e2a579882ac7d55aadfd2a1",
                "sha256:80bb5c256f1415f747011dc3604b59bc1f91c6e7150bd7db03b19170ee06b320",
                "sha256:81b19725065dcb43df02b37e03278c011a09e49757287dca60c5aecdd5a0b8ed",
                "sha256:833b58d5d0b7e5b9832869f039203389ac7cbf01765639c7309fd50ef619e0b1",
                "sha256:88bd7b6bd70a5b6803c1abf6bca012f7ed963e58c68d76ee20b9d751c74a3248",
                "sha256:8ad85f7f4e20964db4daadcab70b47ab05c7c1cf2a7c1e51087bfaa83831854c",
                "sha256:8c0ce1e99116d5ab21355d8ebe53d9460366704ea38ae4d9f6933188f327b456",
                "sha256:8d649d616e5c6a678b26d15ece345354f7c2286acd6db868e65fcc5ff7c24a77",
                "sha256:903500616422a40a98a5a3c4ff4ed9d0066f3b4c951fa286018ecdf0750194ef",
                "sha256:9736af4641846491aedb3c3f56b9bc5568d92b0692303b5a305301a95dfd38b1",
                "sha256:988635d122aaf2bdcef9e795435662bcd65b02f4f4c1ae37fbee7401c440b3a7",
                "sha256:9cca3c2cdadb362116235fdbd411735de4328c61425b0aa9f872fd76d02c4e86",
                "sha256:9e0fd32e0148dd5dea6af5fee42beb949098564cc23211a88d799e434255a1f4",
                "sha256:9f3e6f9e05148ff90002b884fbc2a86bd303ae847e472f44ecc06c2cd2fcdb2d",
                "sha256:a85d2b46be66a71bedde836d9e41859879cc54a2a04fad1191eb50c2066f6e9d",
                "sha256:a9a52172be0b5aae932bef82a79ec0a0ce87288c7d132946d645eba03f0ad8a8",
                "sha256:aa31fdcc33fef9eb2552cbcbfee7773d5a6792c137b359e82879c101e98584c5",
                "sha256:b014c23646a467558be7da3d6b9fa409b2c567d2110599b7cf9a0c5992b3b471",
                "sha256:b21bb4c09ffabfa0e85e3a6b623e19b80e7acd709b9f91452b8297ace2a8ab00",
                "sha256:b5901a312f4d14c59918c221323068fad0540e34324925c8475263841dbdfe68",
                "sha256:b9b7a708dd92306328117d8c4b62e2194d00c365f18eff11a9b53c6f923b01e3",
                "sha256:d1967f46ea8f2db647c786e78d8cc7e4313dbd1b0aca360592d8027b8508e24d",
                "sha256:d52a25136894c63de15a35bc0bdc5adb4b0e173b9c0d07a2be9d3ca64a332735",
                "sha256:d77c85fedff92cf788face9bfa3ebaa364448ebb1d765302e9af11bf449ca36d",
                "sha256:d79d7d5dc8a32b7093e81e97dad755127ff77bcc899e845f41bf71747af0c569",
                "sha256:dbcda74c67263139358f4d188ae5faae95c30929281bc6866d00573783c422b7",
                "sha256:ddaea91abf8b0d13443f6dac52e89051a5063c7d014710dcb4d4abb2ff811a59",
                "sha256:dee0ce50c6a2dd9056c20db781e9c1cfd33e77d2d569f5d1d9321c641bb903d5",
                "sha256:dee60e1de1898bde3b238f18340eec6148986da0455d8ba7848d50470a7a32fb",
                "sha256:e2f83e18fe2f4c9e7db597e988f72712c0c3676d337d8b101f6758107c42425b",
                "sha256:e3fb1677c720409d5f671e39bac6c9e0e422584e5f518bfd50aa4cbbea02433f",
                "sha256:ee2b1b1769f6707a8a445162ea16dddf74285c3964f605877a20e38545c3c462",
                "sha256:ee6acae74a2b91865910eef5e7de37dc6895ad96fa23603d1d27ea69df545015",
                "sha256:ef3f72c9666bba2bab70d2a8b79f2c6d2c1a42a7f7e2b0ec83bb2f9e383950af"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'",
            "version": "==1.14.1"
        }
    },
    "develop": {}
}
@matteius matteius added Type: Possible Bug This issue describes a possible bug in pipenv. triage labels Nov 5, 2022
@matteius
Copy link
Member

@glensc Could you please check with the latest version of pipenv==2022.11.23? I believe @oz123 had a commit for this in requirementslib and it may very well be fixed now.

@matteius matteius added the Status: Awaiting Update ⏳ This issue requires more information before assistance can be provided. label Nov 23, 2022
@glensc
Copy link
Author

glensc commented Nov 23, 2022

$ pipenv --version
pipenv, version 2022.11.23

$ pipenv install "trakt@https://github.com/glensc/python-trakt/archive/refs/tags/3.4.1.zip#egg=trakt"
$ pipenv requirements > requirements.txt

no change, still written as https://github.com/glensc/python-trakt/archive/refs/tags/3.4.1.zip

also, some unwanted formatting changes have appeared:

diff --git a/requirements.txt b/requirements.txt
index 42a5389a..6b36075b 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,38 +1,33 @@
-#
-# These requirements were autogenerated by pipenv
-# To regenerate from the project's Pipfile, run:
-#
-#    pipenv lock --requirements
-#
-
--i https://pypi.org/simple/
+-i https://pypi.org/simple
 appdirs==1.4.4
-attrs==22.1.0; python_version >= '3.5'
-cattrs==22.2.0; python_version >= '3.7'
+attrs==22.1.0 ; python_version >= '3.5'
+cattrs==22.2.0 ; python_version >= '3.7'
 certifi==2022.9.24
-charset-normalizer==2.1.1; python_version >= '3.6'
+charset-normalizer==2.1.1 ; python_version >= '3.6'
 click==8.1.3
 commonmark==0.9.1
 deprecated==1.2.13
-idna==3.4; python_version >= '3.5'
+exceptiongroup==1.0.4 ; python_version < '3.11'
+idna==3.4 ; python_version >= '3.5'
 inquirerpy==0.3.4
 oauthlib==3.2.2
-pfzy==0.3.4; python_version >= '3.7' and python_version < '4.0'
+pfzy==0.3.4 ; python_version >= '3.7' and python_version < '4.0'
 plexapi==4.13.1
-prompt-toolkit==3.0.33; python_full_version >= '3.6.2'
-pygments==2.13.0; python_version >= '3.6'
+prompt-toolkit==3.0.33 ; python_full_version >= '3.6.2'
+pygments==2.13.0 ; python_version >= '3.6'
 python-dotenv==0.21.0
 python-git-info==0.8.2
 pytrakt==3.4.13
 pyyaml==6.0
-requests-cache==0.9.6
-requests-oauthlib==1.3.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
 requests==2.28.1
+requests-cache==0.9.6
+requests-oauthlib==1.3.1 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
 rich==12.6.0
-six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
+six==1.16.0 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
 tqdm==4.64.1
-url-normalize==1.4.3; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
+https://github.com/glensc/python-trakt/archive/refs/tags/3.4.1.zip
+url-normalize==1.4.3 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
 urllib3==1.26.12
 wcwidth==0.2.5
 websocket-client==1.4.2
-wrapt==1.14.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
+wrapt==1.14.1 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'

@matteius matteius added Type: Regression This issue is a regression of a previous behavior. and removed Status: Awaiting Update ⏳ This issue requires more information before assistance can be provided. labels Dec 3, 2022
@matteius
Copy link
Member

matteius commented Dec 9, 2022

@glensc I just tried this and while its written the way you describe (without the name@ prefix) I actually don't run into any issues installing it in the main branch (ignore the deprecation warnings, we are fixing that):

$ pipenv install "trakt@https://github.com/glensc/python-trakt/archive/refs/tags/3.4.1.zip#egg=trakt"
C:\Users\matte\AppData\Roaming\Python\Python310\Scripts\pipenv.exe\__main__.py:4: DeprecationWarning: Please do not use ANSI_COLORS_DISABLED, as it will be removed in future versions.
Use NO_COLOR instead.
C:\Users\matte\AppData\Roaming\Python\Python310\Scripts\pipenv.exe\__main__.py:4: DeprecationWarning: Please do not use VISTIR_DISABLE_COLORS, as it will be removed in future versions.
Use NO_COLOR instead.
C:\Users\matte\AppData\Roaming\Python\Python310\Scripts\pipenv.exe\__main__.py:4: DeprecationWarning: Please do not use CI, as it will be removed in future versions.
Use NO_COLOR instead.
Creating a virtualenv for this project...
Pipfile: C:\Users\matte\Projects\pipenv-triage\pipenv-5432\Pipfile
Using default python from C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64__qbz5n2kfra8p0\python.exe (3.10.9) to create virtualenv...
[==  ] Creating virtual environment...created virtual environment CPython3.10.9.final.0-64 in 2812ms
  creator Venv(dest=C:\c\users\matte\.virtualenvs\pipenv-5432-WK1AisIg, clear=False, no_vcs_ignore=False, global=False, describe=CPython3Windows)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\matte\AppData\Local\pypa\virtualenv)
    added seed packages: pip==22.3.1, setuptools==65.5.1, wheel==0.38.4
  activators BashActivator,BatchActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

Successfully created virtual environment!
Virtualenv location: \c\Users\matte\.virtualenvs\pipenv-5432-WK1AisIg
Creating a Pipfile for this project...
Installing trakt@https://github.com/glensc/python-trakt/archive/refs/tags/3.4.1.zip#egg=trakt...
Pipfile.lock not found, creating...
Locking [packages] dependencies...
running egg_info
creating C:\Users\matte\AppData\Local\Temp\reqlib-src0cqt95dl\trakt\reqlib-metadata\trakt.egg-info
writing C:/Users/matte/AppData/Local/Temp/reqlib-src0cqt95dl/trakt/reqlib-metadata\trakt.egg-info\PKG-INFO
writing dependency_links to C:/Users/matte/AppData/Local/Temp/reqlib-src0cqt95dl/trakt/reqlib-metadata\trakt.egg-info\dependency_links.txt
writing requirements to C:/Users/matte/AppData/Local/Temp/reqlib-src0cqt95dl/trakt/reqlib-metadata\trakt.egg-info\requires.txt
writing top-level names to C:/Users/matte/AppData/Local/Temp/reqlib-src0cqt95dl/trakt/reqlib-metadata\trakt.egg-info\top_level.txt
writing manifest file 'C:/Users/matte/AppData/Local/Temp/reqlib-src0cqt95dl/trakt/reqlib-metadata\trakt.egg-info\SOURCES.txt'
reading manifest file 'C:/Users/matte/AppData/Local/Temp/reqlib-src0cqt95dl/trakt/reqlib-metadata\trakt.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'C:/Users/matte/AppData/Local/Temp/reqlib-src0cqt95dl/trakt/reqlib-metadata\trakt.egg-info\SOURCES.txt'
[====] Resolving dependencies...Warning: C:\Users\matte\Projects\pipenv\pipenv\resolver.py:16: DeprecationWarning: Please do not use ANSI_COLORS_DISABLED, as it will be removed in future versions.
Use NO_COLOR instead.
  spec.loader.exec_module(pipenv)
C:\Users\matte\Projects\pipenv\pipenv\resolver.py:16: DeprecationWarning: Please do not use VISTIR_DISABLE_COLORS, as it will be removed in future versions.
Use NO_COLOR instead.
  spec.loader.exec_module(pipenv)
C:\Users\matte\Projects\pipenv\pipenv\resolver.py:16: DeprecationWarning: Please do not use CI, as it will be removed in future versions.
Use NO_COLOR instead.
  spec.loader.exec_module(pipenv)
Locking [dev-packages] dependencies...
Updated Pipfile.lock (06f582472e0b59d09df941e2cc11918e83674479442737c7d3d9955b6592c3d9)!
Installing dependencies from Pipfile.lock (92c3d9)...
WARNING:pipenv.patched.pip._internal.metadata.base:Ignoring invalid distribution -ipenv (c:\users\matte\appdata\roaming\python\python310\site-packages)
WARNING:pipenv.patched.pip._internal.metadata.base:Ignoring invalid distribution - (c:\users\matte\appdata\roaming\python\python310\site-packages)
INFO:pipenv.patched.pip._internal.network.download:Using cached https://github.com/glensc/python-trakt/archive/refs/tags/3.4.1.zip
INFO:pipenv.patched.pip._vendor.pep517.envbuild:Temporary build environment: C:\Users\matte\AppData\Local\Temp\pep517-build-env-m90v38a_
INFO:pipenv.patched.pip._vendor.pep517.envbuild:Temporary build environment: C:\Users\matte\AppData\Local\Temp\pep517-build-env-0fe462it
running egg_info
creating C:\Users\matte\AppData\Local\Temp\reqlib-srcg76aa412\trakt\reqlib-metadata\trakt.egg-info
writing C:/Users/matte/AppData/Local/Temp/reqlib-srcg76aa412/trakt/reqlib-metadata\trakt.egg-info\PKG-INFO
writing dependency_links to C:/Users/matte/AppData/Local/Temp/reqlib-srcg76aa412/trakt/reqlib-metadata\trakt.egg-info\dependency_links.txt
writing requirements to C:/Users/matte/AppData/Local/Temp/reqlib-srcg76aa412/trakt/reqlib-metadata\trakt.egg-info\requires.txt
writing top-level names to C:/Users/matte/AppData/Local/Temp/reqlib-srcg76aa412/trakt/reqlib-metadata\trakt.egg-info\top_level.txt
writing manifest file 'C:/Users/matte/AppData/Local/Temp/reqlib-srcg76aa412/trakt/reqlib-metadata\trakt.egg-info\SOURCES.txt'
reading manifest file 'C:/Users/matte/AppData/Local/Temp/reqlib-srcg76aa412/trakt/reqlib-metadata\trakt.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'C:/Users/matte/AppData/Local/Temp/reqlib-srcg76aa412/trakt/reqlib-metadata\trakt.egg-info\SOURCES.txt'
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.

matte@LAPTOP-N5VSGIBD MINGW64 ~/Projects/pipenv-triage/pipenv-5432
$ cat Pipfile.lock
{
    "_meta": {
        "hash": {
            "sha256": "06f582472e0b59d09df941e2cc11918e83674479442737c7d3d9955b6592c3d9"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3.10"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "certifi": {
            "hashes": [
                "sha256:35824b4c3a97115964b408844d64aa14db1cc518f6562e8d7261699d1350a9e3",
                "sha256:4ad3232f5e926d6718ec31cfc1fcadfde020920e278684144551c91769c7bc18"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==2022.12.7"
        },
        "charset-normalizer": {
            "hashes": [
                "sha256:5a3d016c7c547f69d6f81fb0db9449ce888b418b5b9952cc5e6e66843e9dd845",
                "sha256:83e9a75d1911279afd89352c68b45348559d1fc0506b054b346651b5e7fee29f"
            ],
            "markers": "python_full_version >= '3.6.0'",
            "version": "==2.1.1"
        },
        "idna": {
            "hashes": [
                "sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4",
                "sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"
            ],
            "markers": "python_version >= '3.5'",
            "version": "==3.4"
        },
        "oauthlib": {
            "hashes": [
                "sha256:8139f29aac13e25d502680e9e19963e83f16838d48a0d71c287fe40e7067fbca",
                "sha256:9859c40929662bec5d64f34d01c99e093149682a3f38915dc0655d5a633dd918"
            ],
            "markers": "python_version >= '3.6'",
            "version": "==3.2.2"
        },
        "requests": {
            "hashes": [
                "sha256:7c5599b102feddaa661c826c56ab4fee28bfd17f5abca1ebbe3e7f19d7c97983",
                "sha256:8fefa2a1a1365bf5520aac41836fbee479da67864514bdb821f31ce07ce65349"
            ],
            "markers": "python_version >= '3.7' and python_version < '4'",
            "version": "==2.28.1"
        },
        "requests-oauthlib": {
            "hashes": [
                "sha256:2577c501a2fb8d05a304c09d090d6e47c306fef15809d102b327cf8364bddab5",
                "sha256:75beac4a47881eeb94d5ea5d6ad31ef88856affe2332b9aafb52c6452ccf0d7a"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
            "version": "==1.3.1"
        },
        "trakt": {
            "file": "https://github.com/glensc/python-trakt/archive/refs/tags/3.4.1.zip",
            "hashes": [
                "sha256:ca2c646630fbf994e7b1e2d5d6bae442a8db210e69d5cce98a23d92d3bb698a3"
            ],
            "version": "==3.4.1"
        },
        "urllib3": {
            "hashes": [
                "sha256:47cc05d99aaa09c9e72ed5809b60e7ba354e64b59c9c173ac3018642d8bb41fc",
                "sha256:c083dd0dce68dbfbe1129d5271cb90f9447dea7d52097c6e0126120c521ddea8"
            ],
            "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'",
            "version": "==1.26.13"
        }
    },
    "develop": {}
}

matte@LAPTOP-N5VSGIBD MINGW64 ~/Projects/pipenv-triage/pipenv-5432
$ cat Pipfile
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
trakt = {file = "https://github.com/glensc/python-trakt/archive/refs/tags/3.4.1.zip"}

[dev-packages]

[requires]
python_version = "3.10"

matte@LAPTOP-N5VSGIBD MINGW64 ~/Projects/pipenv-triage/pipenv-5432
$ pipenv sync
C:\Users\matte\AppData\Roaming\Python\Python310\Scripts\pipenv.exe\__main__.py:4: DeprecationWarning: Please do not use ANSI_COLORS_DISABLED, as it will be removed in future versions.
Use NO_COLOR instead.
C:\Users\matte\AppData\Roaming\Python\Python310\Scripts\pipenv.exe\__main__.py:4: DeprecationWarning: Please do not use VISTIR_DISABLE_COLORS, as it will be removed in future versions.
Use NO_COLOR instead.
C:\Users\matte\AppData\Roaming\Python\Python310\Scripts\pipenv.exe\__main__.py:4: DeprecationWarning: Please do not use CI, as it will be removed in future versions.
Use NO_COLOR instead.
Installing dependencies from Pipfile.lock (92c3d9)...
running egg_info
creating C:\Users\matte\AppData\Local\Temp\reqlib-srczg438ny4\trakt\reqlib-metadata\trakt.egg-info
writing C:/Users/matte/AppData/Local/Temp/reqlib-srczg438ny4/trakt/reqlib-metadata\trakt.egg-info\PKG-INFO
writing dependency_links to C:/Users/matte/AppData/Local/Temp/reqlib-srczg438ny4/trakt/reqlib-metadata\trakt.egg-info\dependency_links.txt
writing requirements to C:/Users/matte/AppData/Local/Temp/reqlib-srczg438ny4/trakt/reqlib-metadata\trakt.egg-info\requires.txt
writing top-level names to C:/Users/matte/AppData/Local/Temp/reqlib-srczg438ny4/trakt/reqlib-metadata\trakt.egg-info\top_level.txt
writing manifest file 'C:/Users/matte/AppData/Local/Temp/reqlib-srczg438ny4/trakt/reqlib-metadata\trakt.egg-info\SOURCES.txt'
reading manifest file 'C:/Users/matte/AppData/Local/Temp/reqlib-srczg438ny4/trakt/reqlib-metadata\trakt.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'C:/Users/matte/AppData/Local/Temp/reqlib-srczg438ny4/trakt/reqlib-metadata\trakt.egg-info\SOURCES.txt'
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
All dependencies are now up-to-date!

matte@LAPTOP-N5VSGIBD MINGW64 ~/Projects/pipenv-triage/pipenv-5432
$ pipenv --rm
C:\Users\matte\AppData\Roaming\Python\Python310\Scripts\pipenv.exe\__main__.py:4: DeprecationWarning: Please do not use ANSI_COLORS_DISABLED, as it will be removed in future versions.
Use NO_COLOR instead.
C:\Users\matte\AppData\Roaming\Python\Python310\Scripts\pipenv.exe\__main__.py:4: DeprecationWarning: Please do not use VISTIR_DISABLE_COLORS, as it will be removed in future versions.
Use NO_COLOR instead.
C:\Users\matte\AppData\Roaming\Python\Python310\Scripts\pipenv.exe\__main__.py:4: DeprecationWarning: Please do not use CI, as it will be removed in future versions.
Use NO_COLOR instead.
Removing virtualenv (\c\Users\matte\.virtualenvs\pipenv-5432-WK1AisIg)...

matte@LAPTOP-N5VSGIBD MINGW64 ~/Projects/pipenv-triage/pipenv-5432
$ pipenv sync
C:\Users\matte\AppData\Roaming\Python\Python310\Scripts\pipenv.exe\__main__.py:4: DeprecationWarning: Please do not use ANSI_COLORS_DISABLED, as it will be removed in future versions.
Use NO_COLOR instead.
C:\Users\matte\AppData\Roaming\Python\Python310\Scripts\pipenv.exe\__main__.py:4: DeprecationWarning: Please do not use VISTIR_DISABLE_COLORS, as it will be removed in future versions.
Use NO_COLOR instead.
C:\Users\matte\AppData\Roaming\Python\Python310\Scripts\pipenv.exe\__main__.py:4: DeprecationWarning: Please do not use CI, as it will be removed in future versions.
Use NO_COLOR instead.
Creating a virtualenv for this project...
Pipfile: C:\Users\matte\Projects\pipenv-triage\pipenv-5432\Pipfile
Using C:/Program Files/WindowsApps/PythonSoftwareFoundation.Python.3.10_3.10.2544.0_x64__qbz5n2kfra8p0/python3.10.exe (3.10.9) to create virtualenv...
[====] Creating virtual environment...created virtual environment CPython3.10.9.final.0-64 in 511ms
  creator Venv(dest=C:\c\users\matte\.virtualenvs\pipenv-5432-WK1AisIg, clear=False, no_vcs_ignore=False, global=False, describe=CPython3Windows)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\matte\AppData\Local\pypa\virtualenv)
    added seed packages: pip==22.3.1, setuptools==65.5.1, wheel==0.38.4
  activators BashActivator,BatchActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

Successfully created virtual environment!
Virtualenv location: \c\Users\matte\.virtualenvs\pipenv-5432-WK1AisIg
Installing dependencies from Pipfile.lock (92c3d9)...
running egg_info
creating C:\Users\matte\AppData\Local\Temp\reqlib-srcw7q0ldp4\trakt\reqlib-metadata\trakt.egg-info
writing C:/Users/matte/AppData/Local/Temp/reqlib-srcw7q0ldp4/trakt/reqlib-metadata\trakt.egg-info\PKG-INFO
writing dependency_links to C:/Users/matte/AppData/Local/Temp/reqlib-srcw7q0ldp4/trakt/reqlib-metadata\trakt.egg-info\dependency_links.txt
writing requirements to C:/Users/matte/AppData/Local/Temp/reqlib-srcw7q0ldp4/trakt/reqlib-metadata\trakt.egg-info\requires.txt
writing top-level names to C:/Users/matte/AppData/Local/Temp/reqlib-srcw7q0ldp4/trakt/reqlib-metadata\trakt.egg-info\top_level.txt
writing manifest file 'C:/Users/matte/AppData/Local/Temp/reqlib-srcw7q0ldp4/trakt/reqlib-metadata\trakt.egg-info\SOURCES.txt'
reading manifest file 'C:/Users/matte/AppData/Local/Temp/reqlib-srcw7q0ldp4/trakt/reqlib-metadata\trakt.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'C:/Users/matte/AppData/Local/Temp/reqlib-srcw7q0ldp4/trakt/reqlib-metadata\trakt.egg-info\SOURCES.txt'
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
All dependencies are now up-to-date!

@matteius
Copy link
Member

matteius commented Dec 9, 2022

Also:

$ pipenv run pip freeze
C:\Users\matte\AppData\Roaming\Python\Python310\Scripts\pipenv.exe_main_.py:4: DeprecationWarning: Please do not use ANSI_COLORS_DISABLED, as it will be removed in future versions.
Use NO_COLOR instead.
C:\Users\matte\AppData\Roaming\Python\Python310\Scripts\pipenv.exe_main_.py:4: DeprecationWarning: Please do not use VISTIR_DISABLE_COLORS, as it will be removed in future versions.
Use NO_COLOR instead.
C:\Users\matte\AppData\Roaming\Python\Python310\Scripts\pipenv.exe_main_.py:4: DeprecationWarning: Please do not use CI, as it will be removed in future versions.
Use NO_COLOR instead.
certifi==2022.12.7
charset-normalizer==2.1.1
idna==3.4
oauthlib==3.2.2
requests==2.28.1
requests-oauthlib==1.3.1
trakt @ https://github.com/glensc/python-trakt/archive/refs/tags/3.4.1.zip
urllib3==1.26.13

@glensc
Copy link
Author

glensc commented Dec 9, 2022

and pipenv requirements output? (what the issue is about)

@glensc
Copy link
Author

glensc commented Dec 11, 2022

This is what pipenv 2022.9.24 requirements produces:

@matteius
Copy link
Member

and pipenv requirements output? (what the issue is about)

Ah ok I didn't check pipenv requirements yet for this issue but pipenv install invokes lock (and I may have re-locked) so I think that part is working?

@matteius matteius self-assigned this Aug 22, 2023
@matteius
Copy link
Member

@glensc A lot has changed internal to pipenv (acknowledging that I broke a couple things in a major refactor that was released this past week but much of that has been fixed and I expect editable file dependencies to be patched this weekend); that being said, I am curious of this is still an issue with the latest versions -- if still an issue, we can now prioritize fixing it without the burdens of requirementslib making it hard to do.

@matteius matteius added Status: Awaiting Update ⏳ This issue requires more information before assistance can be provided. and removed Type: Regression This issue is a regression of a previous behavior. labels Aug 26, 2023
@glensc
Copy link
Author

glensc commented Jan 24, 2024

with 2023.11.17. tested with these commands:

➜ pipenv --version
pipenv, version 2023.11.17

$ pipenv install "trakt@https://github.com/glensc/python-trakt/archive/refs/tags/3.4.1.zip#egg=trakt"
$ pipenv requirements > requirements.txt

Pipfile looks like this:

diff --git a/Pipfile b/Pipfile
index 51701561..2086f619 100644
--- a/Pipfile
+++ b/Pipfile
@@ -38,6 +38,7 @@ urllib3 = "==2.1.0"
 wcwidth = "==0.2.13"
 websocket-client = "==1.7.0"
 wrapt = {version="==1.16.0", python_version=">='3.5'"}
+trakt = {file = "https://github.com/glensc/python-trakt/archive/refs/tags/3.4.1.zip"}
 
 [requires]
 python_version = "3"

but the original bug report of requirements.txt is not:

diff --git a/requirements.txt b/requirements.txt
index d8b35416..4b6668c7 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -5,6 +5,7 @@ certifi==2023.11.17; python_version >= '3.6'
 charset-normalizer==3.3.2; python_full_version >= '3.7.0'
 click==8.1.7; python_version >= '3.7'
 deprecated==1.2.14; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
+exceptiongroup==1.2.0; python_version < '3.11'
 idna==3.6; python_version >= '3.5'
 inquirerpy==0.3.4; python_version >= '3.7' and python_version < '4.0'
 markdown-it-py==3.0.0; python_version >= '3.7' and python_version >= '3.8'
@@ -26,6 +27,8 @@ requests-oauthlib==1.3.1; python_version >= '2.7' and python_version not in '3.0
 rich==13.7.0; python_full_version >= '3.7.0'
 six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' and python_version >= '3.4'
 tqdm==4.66.1; python_version >= '3.7'
+https://github.com/glensc/python-trakt/archive/refs/tags/3.4.1.zip
+typing-extensions==4.9.0; python_version < '3.11'
 url-normalize==1.4.3; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5' and python_version >= '3.6'
 urllib3==2.1.0; python_version >= '3.8'
 wcwidth==0.2.13

so, should be re-opened as not fixed

@glensc
Copy link
Author

glensc commented Jan 24, 2024

...so, should be re-opened as not fixed

@matteius matteius reopened this Jan 24, 2024
@glensc

This comment was marked as outdated.

@glensc
Copy link
Author

glensc commented Jan 24, 2024

I've tested with:

pipenv install "git+https://github.com/glensc/python-pytrakt@refs/pull/37/head"        

this results:

diff --git a/Pipfile b/Pipfile
index 51701561..0e21062a 100644
--- a/Pipfile
+++ b/Pipfile
-pytrakt = "==3.4.26"
+pytrakt = {ref = "refs/pull/37/head", git = "git+https://github.com/glensc/python-pytrakt"}

diff --git a/requirements.txt b/requirements.txt
index d8b35416..04a9dad0 100644
--- a/requirements.txt
+++ b/requirements.txt
-pytrakt==3.4.26
+pytrakt@ git+https://github.com/glensc/python-pytrakt@c8b1415ab8eb16156a49c48d90b57da3585b80bc

requirements.txt is installable with pip


and also:

pipenv install "https://github.com/glensc/python-trakt/archive/refs/tags/3.4.27.zip" 

this results:

diff --git a/Pipfile b/Pipfile
index 51701561..a00755fa 100644
--- a/Pipfile
+++ b/Pipfile
-pytrakt = "==3.4.26"
+pytrakt = {file = "https://github.com/glensc/python-trakt/archive/refs/tags/3.4.27.zip"}

--- a/requirements.txt
+++ b/requirements.txt
-pytrakt==3.4.26
+https://github.com/glensc/python-trakt/archive/refs/tags/3.4.27.zip

requirements.txt is installable with pip

I don't recall why I used the "@" syntax in first place because this also works


and lastly

$ pipenv install "pytrakt@https://github.com/glensc/python-trakt/archive/refs/tags/3.4.27.zip"
diff --git a/Pipfile b/Pipfile
index 51701561..a00755fa 100644
--- a/Pipfile
+++ b/Pipfile
-pytrakt = "==3.4.26"
+pytrakt = {file = "https://github.com/glensc/python-trakt/archive/refs/tags/3.4.27.zip"}

diff --git a/requirements.txt b/requirements.txt
index d8b35416..605e2a59 100644
--- a/requirements.txt
+++ b/requirements.txt
-pytrakt==3.4.26
+https://github.com/glensc/python-trakt/archive/refs/tags/3.4.27.zip

oh wait, the egg= varant as well

$ pipenv install "pytrakt@https://github.com/glensc/python-trakt/archive/refs/tags/3.4.27.zip#egg=pytrakt"
diff --git a/Pipfile b/Pipfile
index 51701561..a00755fa 100644
--- a/Pipfile
+++ b/Pipfile
-pytrakt = "==3.4.26"
 +pytrakt = {file = "https://github.com/glensc/python-trakt/archive/refs/tags/3.4.27.zip"}

diff --git a/requirements.txt b/requirements.txt
index d8b35416..7b472d26 100644
--- a/requirements.txt
+++ b/requirements.txt
-pytrakt==3.4.26
+https://github.com/glensc/python-trakt/archive/refs/tags/3.4.27.zip 

@glensc
Copy link
Author

glensc commented Jan 24, 2024

@matteius I've done some tests and shared their outcome, they doesn't behave identically, but it also produces requirements.txt that pip is able to use. so problem the "title" is not fixed, but it's no longer strictly needed for my usecase.

EDIT: the "name@" syntax I used initially because it was in setuptools documentation:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting Update ⏳ This issue requires more information before assistance can be provided. triage Type: Possible Bug This issue describes a possible bug in pipenv.
Projects
None yet
Development

No branches or pull requests

2 participants