Skip to content

Commit

Permalink
Opt for short package names
Browse files Browse the repository at this point in the history
We use short package names instead of fully qualified package name,
while still retaining fully qualified system names.
  • Loading branch information
foretspaisibles committed Jul 29, 2024
1 parent af22fd9 commit 3bae92d
Show file tree
Hide file tree
Showing 30 changed files with 56 additions and 58 deletions.
3 changes: 2 additions & 1 deletion development/makedoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
: ${subrdir:=${TOPLEVELDIR}/subr}
: ${makedocdir:=${TOPLEVELDIR}/obj/makedoc}
: ${makedocsystem:="org.melusina.atelier"}
: ${makedocpackage:=${makedocsystem#'org.melusina.'}}

. "${subrdir}/stdlib.sh"

Expand Down Expand Up @@ -44,7 +45,7 @@ makedoc_extract()
--eval '(with-compilation-unit () (load "libexec/lisp/docstrings.lisp"))' \
--eval "(sb-texinfo:generate-includes\
\"obj/makedoc/include/\"\
(list :${makedocsystem}) :base-package :${makedocsystem})" \
(list :${makedocpackage}) :base-package :${makedocpackage})" \
--eval '(quit)'
}

Expand Down
3 changes: 2 additions & 1 deletion development/testsuite
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

: ${TOPLEVELDIR:=$(git rev-parse --show-toplevel)}
: ${testsuitesystem:="org.melusina.atelier/testsuite"}
: ${testsuitepackage:=${testsuitesystem#'org.melusina.'}}
: ${testsuiteclean:='no'}
: ${testsuitelisp:='sbcl'}

Expand All @@ -41,7 +42,7 @@ testsuite_run()
(pushnew #p\".\" ql:*local-project-directories*)
(ql:register-local-projects))"\
--eval "(ql:quickload \"${testsuitesystem}\" :silent t)"\
--eval "(${testsuitesystem}:$1)"\
--eval "(${testsuitepackage}:$1)"\
--eval "(org.melusina.confidence:quit)"
}

Expand Down
46 changes: 23 additions & 23 deletions doc/org.melusina.atelier.texinfo
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ for Lisp developpers such as project templates and a linter.
@node Template, Linter, Introduction, Top
@chapter File templates and project scaffolding

@include include/fun-org.melusina.atelier-find-template.texinfo
@include include/fun-org.melusina.atelier-list-templates.texinfo
@include include/fun-org.melusina.atelier-write-template.texinfo
@include include/fun-atelier-find-template.texinfo
@include include/fun-atelier-list-templates.texinfo
@include include/fun-atelier-write-template.texinfo
@c Lisp Projects
@include include/fun-org.melusina.atelier-new-lisp-file.texinfo
@include include/fun-org.melusina.atelier-new-lisp-project.texinfo
@include include/fun-atelier-new-lisp-file.texinfo
@include include/fun-atelier-new-lisp-project.texinfo

@example
(atelier:new-lisp-project
Expand All @@ -108,34 +108,34 @@ for Lisp developpers such as project templates and a linter.
@end example

@c License
@include include/fun-org.melusina.atelier-list-licenses.texinfo
@include include/fun-atelier-list-licenses.texinfo
@c Parameters
@include include/fun-org.melusina.atelier-list-template-parameter-names.texinfo
@include include/fun-org.melusina.atelier-parameter-keyword.texinfo
@include include/fun-atelier-list-template-parameter-names.texinfo
@include include/fun-atelier-parameter-keyword.texinfo

@node Linter, Configuration, Template, Top
@chapter Linter

@include include/var-org.melusina.atelier-star-linter-interactive-p-star.texinfo
@include include/fun-org.melusina.atelier-lint.texinfo
@include include/macro-org.melusina.atelier-define-inspector.texinfo
@include include/fun-org.melusina.atelier-list-inspectors.texinfo
@include include/var-atelier-star-linter-interactive-p-star.texinfo
@include include/fun-atelier-lint.texinfo
@include include/macro-atelier-define-inspector.texinfo
@include include/fun-atelier-list-inspectors.texinfo
@c Linter Classes
@include include/class-org.melusina.atelier-linter.texinfo
@include include/class-org.melusina.atelier-canonical-source-linter.texinfo
@include include/class-org.melusina.atelier-extensive-linter.texinfo
@include include/class-org.melusina.atelier-plain-line-comment-linter.texinfo
@include include/class-org.melusina.atelier-plain-block-comment-linter.texinfo
@include include/class-atelier-linter.texinfo
@include include/class-atelier-canonical-source-linter.texinfo
@include include/class-atelier-extensive-linter.texinfo
@include include/class-atelier-plain-line-comment-linter.texinfo
@include include/class-atelier-plain-block-comment-linter.texinfo
@c Linter Generic
@include include/fun-org.melusina.atelier-content-inspectors.texinfo
@include include/fun-org.melusina.atelier-file-inspectors.texinfo
@include include/fun-org.melusina.atelier-hint-at-file-line.texinfo
@include include/fun-org.melusina.atelier-hint-at-file.texinfo
@include include/fun-org.melusina.atelier-lint-file.texinfo
@include include/fun-atelier-content-inspectors.texinfo
@include include/fun-atelier-file-inspectors.texinfo
@include include/fun-atelier-hint-at-file-line.texinfo
@include include/fun-atelier-hint-at-file.texinfo
@include include/fun-atelier-lint-file.texinfo

@node Configuration, , Linter, Top
@chapter Configuration of program parameters

@include include/var-org.melusina.atelier-star-parameter-bindings-star.texinfo
@include include/var-atelier-star-parameter-bindings-star.texinfo

@bye
2 changes: 1 addition & 1 deletion src/configuration.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier)
(in-package #:atelier)

(defparameter *resourcedir* #.(or (uiop:getenv "ATELIER_RESOURCEDIR")
(when *compile-file-pathname*
Expand Down
2 changes: 1 addition & 1 deletion src/inspector/codestyle-0001.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier)
(in-package #:atelier)

(define-inspector :codestyle-0001 hint-at-file-when-character-encoding-is-not-utf8 (pathname)
"Hint at PATHNAME when it is not a valid UTF8 file."
Expand Down
2 changes: 1 addition & 1 deletion src/inspector/codestyle-0002.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier)
(in-package #:atelier)

(define-inspector :codestyle-0002 hint-at-file-line-when-it-is-very-long (line &key (maximum-length 100))
"Hint at very long LINE.
Expand Down
2 changes: 1 addition & 1 deletion src/inspector/codestyle-0003.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier)
(in-package #:atelier)

(defun string-shebang-end-position (string)
"The end position of a possible shebang line in STRING."
Expand Down
2 changes: 1 addition & 1 deletion src/inspector/codestyle-0004.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier)
(in-package #:atelier)

(define-inspector :codestyle-004 hint-at-file-when-it-lacks-canonical-footer-line (contents)
"Hint at file when it lacks the canonical footer line.
Expand Down
2 changes: 1 addition & 1 deletion src/inspector/codestyle-0005.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier)
(in-package #:atelier)

(define-inspector :codestyle-005 hint-at-file-when-it-lacks-canonical-project-identification (contents)
"Hint at file when it lacks the canonical project identification.
Expand Down
2 changes: 1 addition & 1 deletion src/inspector/codestyle-0006.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier)
(in-package #:atelier)

(define-inspector :codestyle-006 hint-at-file-when-it-lacks-project-license-information (contents)
"Hint at file when it lacks the canonical project license information."
Expand Down
2 changes: 1 addition & 1 deletion src/license.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier)
(in-package #:atelier)

(defparameter *license-repository-pathname* (merge-pathnames "license/" *resourcedir*)
"The pathname to our license repository.")
Expand Down
2 changes: 1 addition & 1 deletion src/lint.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier)
(in-package #:atelier)

(defparameter *linter-interactive-p*
(and (position :swank *features*) t)
Expand Down
2 changes: 1 addition & 1 deletion src/main.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier)
(in-package #:atelier)

(defun initialize ()
(license-repository-load)
Expand Down
5 changes: 2 additions & 3 deletions src/package.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(defpackage #:org.melusina.atelier
(:local-nicknames (#:rashell #:org.melusina.rashell))
(defpackage #:atelier
(:use #:common-lisp)
(:import-from #:alexandria
#:hash-table-keys
Expand Down Expand Up @@ -55,7 +54,7 @@
#:list-inspectors
))

(in-package #:org.melusina.atelier)
(in-package #:atelier)

(declaim (ftype (function nil (values null)) initialize))

Expand Down
2 changes: 1 addition & 1 deletion src/parameter.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier)
(in-package #:atelier)

;;;
;;; Parameters
Expand Down
2 changes: 1 addition & 1 deletion src/project.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier)
(in-package #:atelier)

(defparameter *project* nil
"The default project for atelier operations.")
Expand Down
2 changes: 1 addition & 1 deletion src/template.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier)
(in-package #:atelier)

(defparameter *template-repository-pathname*
(merge-pathnames "template/" *resourcedir*)
Expand Down
2 changes: 1 addition & 1 deletion src/utilities.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier)
(in-package #:atelier)

(defun string-match (pattern text)
"Predicate recognising TEXT matching a globbing PATTERN."
Expand Down
2 changes: 1 addition & 1 deletion testsuite/entrypoint.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier/testsuite)
(in-package #:atelier/testsuite)

(define-testcase run-all-tests ()
(atelier:initialize)
Expand Down
2 changes: 1 addition & 1 deletion testsuite/inspector/codestyle-0001.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier/testsuite)
(in-package #:atelier/testsuite)

;;;; End of file `codestyle-0001.lisp'
2 changes: 1 addition & 1 deletion testsuite/inspector/codestyle-0002.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier/testsuite)
(in-package #:atelier/testsuite)

(define-testcase validate-codestyle-0002-hint-at-file-line-when-it-is-very-long ()
(let ((short-line
Expand Down
2 changes: 1 addition & 1 deletion testsuite/inspector/codestyle-0003.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier/testsuite)
(in-package #:atelier/testsuite)

(define-testcase validate-codestyle-0003-hint-at-file-when-it-lacks-canonical-header-line ()
(let ((file-1
Expand Down
2 changes: 1 addition & 1 deletion testsuite/inspector/codestyle-0004.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier/testsuite)
(in-package #:atelier/testsuite)
(define-testcase validate-codestyle-0004-hint-at-file-when-it-lacks-canonical-footer-line ()
(let ((file-1
(atelier::join-lines
Expand Down
2 changes: 1 addition & 1 deletion testsuite/inspector/codestyle-0005.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier/testsuite)
(in-package #:atelier/testsuite)

(define-testcase validate-codestyle-0005-hint-at-file-when-it-lacks-canonical-project-identification ()
(let ((file-1
Expand Down
2 changes: 1 addition & 1 deletion testsuite/inspector/codestyle-0006.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier/testsuite)
(in-package #:atelier/testsuite)

(define-testcase validate-codestyle-0006-hint-at-file-when-it-lacks-project-license-information ()
(let ((file-1
Expand Down
2 changes: 1 addition & 1 deletion testsuite/lint.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier/testsuite)
(in-package #:atelier/testsuite)

(define-testcase validate-lint-contents ()
(flet ((linter1 (contents)
Expand Down
7 changes: 2 additions & 5 deletions testsuite/package.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(defpackage #:org.melusina.atelier/testsuite
(:local-nicknames
(#:rashell #:org.melusina.rashell)
(#:atelier #:org.melusina.atelier))
(defpackage #:atelier/testsuite
(:use #:common-lisp)
(:import-from #:org.melusina.confidence
(:import-from #:confidence
#:define-testcase
#:define-assertion
#:assert-t
Expand Down
2 changes: 1 addition & 1 deletion testsuite/parameter.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier/testsuite)
(in-package #:atelier/testsuite)

(defparameter *parameter-bindings*
'((:project-name . "Atelier")
Expand Down
2 changes: 1 addition & 1 deletion testsuite/template.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier/testsuite)
(in-package #:atelier/testsuite)

(rashell:define-test grep (pattern pathname)
((fixed-string :flag "-F")
Expand Down
2 changes: 1 addition & 1 deletion testsuite/utilities.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
;;;; you should have received as part of this distribution. The terms
;;;; are also available at https://opensource.org/licenses/MIT

(in-package #:org.melusina.atelier/testsuite)
(in-package #:atelier/testsuite)

(defmacro with-fixed-parameter-bindings
((&key (copyright-holder "A. U. Thor")
Expand Down

0 comments on commit 3bae92d

Please sign in to comment.