#๐Ÿ”’ PyPi Project not distributing newest update, and new builds fail (doesn't include main file)

35 messages ยท Page 1 of 1 (latest)

cloud rockBOT
#

@fleet escarp

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

fleet escarp
#

I don't think I made any changes which would cause this, but I think at this point I'm pretty lost. I got this toml file, it takes the version number from ASnake.py. That worked fine the first time, but now it doesn't detect ASnake.py at all seemingly. I did a manual entering of the version and the file was missing completely.

#

Here is my pyproject file:

[build-system]
requires = ["setuptools>=46.4.0", "wheel", "sly>=0.4", "autopep8>=1.5.5"]
build-backend = "setuptools.build_meta"

[project]
name = "ASnake_Ahri_Fox"
dynamic = ["version"]
authors = [
  { name="Ahri Fox"},
]
description = "Python optimizing compiler for the ASnake programming language."
readme = "README.md"
requires-python = ">=3.6"
license = { file = "LICENSE.txt" }
classifiers = [
    "Programming Language :: Python :: 3",
    "License :: OSI Approved :: Apache Software License",
    "Operating System :: OS Independent",
    "Operating System :: POSIX :: Linux",
    "Development Status :: 3 - Alpha",
    "Intended Audience :: Developers",
    "Natural Language :: English",
    "Programming Language :: Cython",
    "Programming Language :: Python :: Implementation :: CPython",
    "Programming Language :: Python :: Implementation :: MicroPython",
    "Programming Language :: Python :: Implementation :: PyPy",
    "Topic :: Software Development :: Code Generators",
    "Topic :: Software Development :: Version Control :: Git"
]
keywords = ["programming language","transpiler","pyston","compiler"]

[project.urls]
Homepage = "https://asnake.org"
Github = "https://github.com/AhriFoxSnek/ASnake"
Issues = "https://github.com/AhriFoxSnek/ASnake/issues"

[options]
python_requires = ">=3.6"
install_requires = [
    "sly>=0.4",
    "autopep8>=1.5.5"
]

[tool.setuptools.package-data]
"data" = ["*.bat", "*.asnake", "*.py"]

[tool.setuptools.dynamic]
version = {attr = "ASnake.__version__"}

[entry-points]
console_scripts = [
    "ASnake = ASnake:main"
]
#

and here is the directory, very simple

#

In regards to it not distributing, if I install it on some random machine it'll download 0.13.35, even though i uploaded 0.13.36 ... wait i think i know why.
pip install ASnake-Ahri-Fox==0.13.36
vs
pip install ASnake
omfg i uploaded a completely separate package! lol

#

still need to fix this build issue. but would changing name='ASnake' fix that?

limber nebula
fleet escarp
#

its for building a package and distributing it on pypi. using a setup.py is deprecated.

zinc wind
fleet escarp
#

yeah changing the name seemed to help. i guess i consider that part solved.
but not including the main file? bluh!

#

PyPi Project not distributing newest update, and new builds fail (doesn't include main file)

#

PyPi Project toml new builds fail (doesn't include main file)

fleet escarp
zinc wind
#

hmm

fleet escarp
#

when i specify the version manually, ASnake.py simply isnt included

#

i figure this is some kind of error in how i am specifying things

zinc wind
#

I sorta had that problem before.

#

Did you bump your version up?

fleet escarp
#

yeah

zinc wind
#

maybe bump it again and rebuild?

fleet escarp
#

sure, i'll try

#

yeah, didnt work

zinc wind
#

strange

fleet escarp
#

did 0.13.38 (as a test)
though ig the main package is actually on 0.13.36
but i dont think thats relevant

fleet escarp
#

if i delete the data folder, then ASnake.py appears as it should.
so something about the data folder being there is causing this issue.

#

adding "ASnake.py" to the data list seemed to fix it.

[tool.setuptools.package-data]
"data" = ["*.bat", "*.asnake", "*.py", "ASnake.py"]
#

okay. thanks guys!

#

[SOLVED] PyPi Project toml new builds fail (doesn't include main file)

cloud rockBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.

#

๐Ÿ”’ [SOLVED] PyPi Project toml new builds fail (doesn't include main file)

cloud rockBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.