Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Long input spills into other fields in setup.cfg #330

Closed
matiscke opened this issue May 4, 2018 · 6 comments
Closed

Long input spills into other fields in setup.cfg #330

matiscke opened this issue May 4, 2018 · 6 comments
Labels

Comments

@matiscke
Copy link

matiscke commented May 4, 2018

@bsipocz

Hey there, I just tested cookiecutter with data from a package of mine, and I spotted a possible issue in setup.cfg: apparently, my long package description spilled into other fields of [metadata]. Here's a snippet from my setup.cfg:

[metadata]
package_name = lcps
description = lcps is a tool to search for transit-like features (i.e. dips) in photometric data.
long_description = lcps is a tool to search for transit-like features (i.e. dips) in photometric data.
author = Astropy Developers
author_email = Its main purpose is to restrict large sets of light curves to a number of files that show interesting behavior (i.e. drops in flux). While lcps is adaptable to any format of time series, its current I/O module was designed specifically for photometry of the Kepler spacecraft. It extracts the pre-conditioned PDCSAP data from light curves files created by the standard Kepler pipeline. It can also handle csv-formatted ascii files.
license = BSD 3-Clause
url = lcps uses a sliding window technique to compare a section of flux time series with its surroundings. A dip is detected if the flux within the window is lower than a threshold fraction of the surrounding fluxes.5
edit_on_github = False
github_project = matiscke/lcps
# install_requires should be formatted as a comma-separated list, e.g.:
# install_requires = astropy, scipy, matplotlib
install_requires = astropy
# version should be PEP386 compatible (http://www.python.org/dev/peps/pep-0386)
version = 0.4.dev50
# Note: you will also need to change this in your package's __init__.py
minimum_python_version = 2.7
@bsipocz
Copy link
Member

bsipocz commented May 4, 2018

cc @Cadair

@matiscke
Copy link
Author

matiscke commented May 4, 2018

as requested by @Cadair:

$ pip freeze
alabaster==0.7.10
APLpy==1.1.1
apparmor==2.10.3
arrow==0.12.1
asciitable==0.8.0
astropy==2.0.3
astroquery==0.3.6.post2
attrs==17.3.0
Babel==2.5.3
beautifulsoup4==4.6.0
binaryornot==0.4.4
bottle==0.12.8
Brlapi==0.6.3
cairocffi==0.7.2
certifi==2018.4.16
cffi==1.9.1
chardet==3.0.4
click==6.7
constantly==15.1.0
cookiecutter==1.6.0
corner==2.0.1
coverage==4.3.4
cryptography==1.7.2
cupshelpers==1.0
cycler==0.10.0
Cython==0.24
decorator==4.1.2
docutils==0.14
ecdsa==0.13
emcee==2.2.1
ephem==3.7.6.0
flake8==3.5.0
future==0.16.0
gitdb2==2.0.3
GitPython==2.1.9
h5py==2.7.1
html5lib==1.0.1
idna==2.6
imagesize==1.0.0                                                                                                  
incremental==16.10.1                                                                                              
ipykernel==4.8.0                                                                                                  
ipython==6.2.1                                                                                                    
ipython-genutils==0.2.0                                                                                           
jedi==0.11.1                                                                                                      
Jinja2==2.8                                                                                                       
jinja2-time==0.2.0                                                                                                
joblib==0.11                                                                                                      
jsonschema==2.5.1                                                                                                 
jupyter-client==5.2.2                                                                                             
jupyter-core==4.4.0                                                                                               
keyring==10.5.1                                                                                                   
lcps==0.3.dev0                                                                                                    
LibAppArmor==2.10.3                                                                                               
louis==2.6.4                                                                                                      
MarkupSafe==0.23                                                                                                  
matplotlib==2.1.1                                                                                                 
mccabe==0.6.1                                                                                                     
mistune==0.7
mpmath==1.0.0
networkx==2.0
nose==1.3.7
numexpr==2.6.4
numpy==1.14.2
olefile==0.44
packaging==17.1
pandas==0.21.1
paramiko==2.1.2
parso==0.1.1
patsy==0.4.1
pexpect==3.3
photutils==0.4
pickleshare==0.7.4
Pillow==4.3.0
pkgconfig==1.1.0
plotutils==0.3.2
pluggy==0.6.0
poyo==0.4.1
prompt-toolkit==1.0.15
py==1.5.2
pyasn1==0.1.8
pycodestyle==2.3.1
pycparser==2.14
pycrypto==2.6.1
pycups==1.9.72
pycurl==7.19.5.1
pyflakes==1.6.0
Pygments==2.0.2
pygobject==3.20.1
pymc3==3.4.1
pymongo==3.0.3
pyOpenSSL==0.15.1
pyparsing==2.2.0
PyPDF2==1.26.0
pyserial==2.7
pysmbc==1.0.15.4
pytest==3.3.1
python-dateutil==2.6.1
python-efl==1.19.0
pytz==2017.3
PyWavelets==0.5.2
pyxdg==0.25
pyzmq==14.7.0
reproject==0.3.2
requests==2.18.4
rpy2==2.9.1
scikit-image==0.13.1
scikit-learn==0.19.1
scipy==1.0.0
seaborn==0.8.1
SecretStorage==2.3.1
simplegeneric==0.8.1
simplejson==3.8.0
six==1.11.0
smmap2==2.0.3
snowballstemmer==1.2.1
Sphinx==1.7.4
sphinxcontrib-websupport==1.0.1
statsmodels==0.8.0
sympy==1.1.1
tables==3.4.2
Theano==1.0.1
tornado==4.2.1
tqdm==4.23.2
traitlets==4.3.2
Twisted==16.6.0
typing==3.6.4
urllib3==1.22
virtualenv==13.1.2
wcwidth==0.1.7
webencodings==0.5.1
whichcraft==0.4.1
xarray==0.10.2
zope.interface==4.1.2

@bsipocz
Copy link
Member

bsipocz commented May 4, 2018

Maybe @Cadair is right and it's a jinja2 issues, the 2.8 release is almost 3 years old.

@matiscke
Copy link
Author

matiscke commented May 5, 2018

Thanks for the hint. I tried and updated Jinja2 to 2.10, and built a new package with cookiecutter. The result is the same as above.

@astrofrog
Copy link
Member

I think cookiecutter doesn't deal well with multi-line input. However I removed long_description as a variable in #438 so maybe we don't need to worry about this anymore?

@pllim pllim added the won't fix: deprecated Template is deprecated here label Aug 11, 2023
@pllim
Copy link
Member

pllim commented Aug 11, 2023

@pllim pllim closed this as not planned Won't fix, can't repro, duplicate, stale Aug 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants