proycon / codemetapy

A Python package for generating and working with codemeta
https://codemeta.github.io/
GNU General Public License v3.0
24 stars 5 forks source link

Equivalent to `--no-extras` in v2.0.0+? #24

Closed matthewfeickert closed 1 year ago

matthewfeickert commented 1 year ago

In v0.3.3 there was a -no-extras parameter, that seems to have been removed from codemetapy v2.0.0+.

$ docker run --rm -ti python:3.10 /bin/bash
root@127fa490e5df:/# python -m venv venv && . venv/bin/activate
(venv) root@127fa490e5df:/# python -m pip install --upgrade pip setuptools wheel
(venv) root@127fa490e5df:/# python -m pip --quiet install pyhf
(venv) root@127fa490e5df:/# python -m pip --quiet install 'codemetapy==0.3.3'
(venv) root@127fa490e5df:/# codemetapy --no-extras pyhf
(venv) root@127fa490e5df:/# python -m pip --quiet install 'codemetapy==2.0.0'
(venv) root@127fa490e5df:/# codemetapy --no-extras pyhf
usage: codemetapy [-h] [-t] [--exact-python-version] [--single-author] [-b BASEURI] [-B BASEURL] [-o OUTPUT] [-O OUTPUTFILE] [-i INPUTTYPES] [-g] [-s SELECT] [--css CSS]
                  [--no-cache] [--toolstore] [--strict] [--released] [--title TITLE] [--address ADDRESS] [--affiliation AFFILIATION] [--applicationCategory APPLICATIONCATEGORY]
                  [--applicationSubCategory APPLICATIONSUBCATEGORY] [--author AUTHOR] [--buildInstructions BUILDINSTRUCTIONS] [--citation CITATION] [--codeRepository CODEREPOSITORY]
                  [--contIntegration CONTINTEGRATION] [--contributor CONTRIBUTOR] [--copyrightHolder COPYRIGHTHOLDER] [--copyrightYear COPYRIGHTYEAR] [--dateCreated DATECREATED]
                  [--dateModified DATEMODIFIED] [--datePublished DATEPUBLISHED] [--description DESCRIPTION] [--developmentStatus DEVELOPMENTSTATUS] [--downloadUrl DOWNLOADURL]
                  [--editor EDITOR] [--email EMAIL] [--embargoDate EMBARGODATE] [--encoding ENCODING] [--familyName FAMILYNAME] [--fileFormat FILEFORMAT] [--fileSize FILESIZE]
                  [--funder FUNDER] [--funding FUNDING] [--givenName GIVENNAME] [--hasPart HASPART] [--id ID] [--identifier IDENTIFIER] [--installUrl INSTALLURL]
                  [--isAccessibleForFree ISACCESSIBLEFORFREE] [--isPartOf ISPARTOF] [--issueTracker ISSUETRACKER] [--keywords KEYWORDS] [--license LICENSE] [--maintainer MAINTAINER]
                  [--memoryRequirements MEMORYREQUIREMENTS] [--name NAME] [--operatingSystem OPERATINGSYSTEM] [--permissions PERMISSIONS] [--position POSITION]
                  [--processorRequirements PROCESSORREQUIREMENTS] [--producer PRODUCER] [--programmingLanguage PROGRAMMINGLANGUAGE] [--provider PROVIDER] [--publisher PUBLISHER]
                  [--readme README] [--referencePublication REFERENCEPUBLICATION] [--relatedLink RELATEDLINK] [--releaseNotes RELEASENOTES] [--runtimePlatform RUNTIMEPLATFORM]
                  [--sameAs SAMEAS] [--softwareHelp SOFTWAREHELP] [--softwareRequirements SOFTWAREREQUIREMENTS] [--softwareSuggestions SOFTWARESUGGESTIONS]
                  [--softwareVersion SOFTWAREVERSION] [--sponsor SPONSOR] [--storageRequirements STORAGEREQUIREMENTS] [--supportingData SUPPORTINGDATA]
                  [--targetProduct TARGETPRODUCT] [--type TYPE] [--url URL] [--version VERSION]
                  [inputsources ...]
codemetapy: error: unrecognized arguments: --no-extras

In codemetapy v2.2.0 is there a set of options that can get a similar effect as --no-extras?

proycon commented 1 year ago

Sorry, it seems this functionality got lost in one of the major refactoring rounds, I readded it now and will do a new release shortly (v2.2.1)

proycon commented 1 year ago

Released now